Class: GenshinObject::ArtifactSet
- Inherits:
-
Object
- Object
- GenshinObject::ArtifactSet
- Defined in:
- lib/genshin_object/artifact_set.rb
Overview
Base class to represent various Genshin Artifact Sets
Constant Summary collapse
- SLOTS =
%i[flower plume sands goblet circlet].freeze
Instance Attribute Summary collapse
-
#bonuses ⇒ Object
Returns the value of attribute bonuses.
-
#kamera_key ⇒ Object
Returns the value of attribute kamera_key.
-
#max_rarity ⇒ Object
Returns the value of attribute max_rarity.
-
#name ⇒ Object
Returns the value of attribute name.
-
#slots ⇒ Object
Returns the value of attribute slots.
Instance Method Summary collapse
-
#initialize(kamera_key:, name:, max_rarity:, bonuses:, slots: SLOTS) ⇒ ArtifactSet
constructor
A new instance of ArtifactSet.
Constructor Details
#initialize(kamera_key:, name:, max_rarity:, bonuses:, slots: SLOTS) ⇒ ArtifactSet
Returns a new instance of ArtifactSet.
10 11 12 13 14 15 16 |
# File 'lib/genshin_object/artifact_set.rb', line 10 def initialize(kamera_key:, name:, max_rarity:, bonuses:, slots: SLOTS) @kamera_key = kamera_key @name = name @max_rarity = max_rarity @slots = slots @bonuses = bonuses end |
Instance Attribute Details
#bonuses ⇒ Object
Returns the value of attribute bonuses.
6 7 8 |
# File 'lib/genshin_object/artifact_set.rb', line 6 def bonuses @bonuses end |
#kamera_key ⇒ Object
Returns the value of attribute kamera_key.
6 7 8 |
# File 'lib/genshin_object/artifact_set.rb', line 6 def kamera_key @kamera_key end |
#max_rarity ⇒ Object
Returns the value of attribute max_rarity.
6 7 8 |
# File 'lib/genshin_object/artifact_set.rb', line 6 def max_rarity @max_rarity end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/genshin_object/artifact_set.rb', line 6 def name @name end |
#slots ⇒ Object
Returns the value of attribute slots.
6 7 8 |
# File 'lib/genshin_object/artifact_set.rb', line 6 def slots @slots end |