teyvatdb 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab1988576ceb735e71d6bfbd0403243a1d12e27484760a451f00403a0f69daae
4
- data.tar.gz: 763e0e94285fcc0a1cb305088a675bf986dc91895abe172155b9888c9d3e6a4a
3
+ metadata.gz: 1816f528585dd94e7d9010db3d0e09bbaf26f25566ada8df82acbea4fafb49fe
4
+ data.tar.gz: 5491d16829e2d0cc626faaf1c71058253ee1f70a70530b6dc07b221a6da83a93
5
5
  SHA512:
6
- metadata.gz: 728ce59b8e6796de0a3c9481f60d22a9033d4953b969c0b180b84fbeb89f4a7905fa91f33e0220febbe05d2c0d31d6f0ea870146abbf93dfdc67b28aef1ace5b
7
- data.tar.gz: 1e6d0396b6d816ee0587cab13959637856af2a9663db9c6fff3c0c692a8054b3f526eef7fdb94a1f12fa33c54854a3dc49fc3a6b40483f40d944f085cda1d800
6
+ metadata.gz: b74630d6197cca4191420aeb92b10b2505fced380a5a79cc9b68ba84a5b5fcdabcf322beb3b2a2e38c4c22412292bce589fc76fd3fda8524ab83b62a58dfa72b
7
+ data.tar.gz: d5fdf30a22ed071d95f1c95314cf22f881cbbf6b15cb534210fc4014b4d3b1eb7cf29492c63dc47598f06723bd9eb914eaff9a17ec89719990515a1e20055197
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- teyvatdb (0.1.1)
4
+ teyvatdb (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -0,0 +1,19 @@
1
+ module GenshinData
2
+ class Weapon
3
+ WEAPON_TYPES = [:sword, :polearm, :catalyst, :bow, :claymore]
4
+
5
+ attr_accessor :kamera_key, :name, :rarity, :weapon_type,
6
+ :elite_material_type, :standard_material_type, :weapon_material_type
7
+
8
+ def initialize(kamera_key:, name:, rarity:, weapon_type:,
9
+ elite_material_type:, standard_material_type:, weapon_material_type:)
10
+ @kamera_key = kamera_key
11
+ @name = name
12
+ @rarity = rarity
13
+ @weapon_type = weapon_type
14
+ @elite_material_type = elite_material_type
15
+ @standard_material_type = standard_material_type
16
+ @weapon_material_type = weapon_material_type
17
+ end
18
+ end
19
+ end
data/lib/genshin_data.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  module GenshinData
2
2
  require_relative "genshin_data/nation"
3
3
  require_relative "genshin_data/character"
4
+ require_relative "genshin_data/weapon"
4
5
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TeyvatDB
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end