Class: GenshinObject::ArtifactSet

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#bonusesObject

Returns the value of attribute bonuses.



6
7
8
# File 'lib/genshin_object/artifact_set.rb', line 6

def bonuses
  @bonuses
end

#kamera_keyObject

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_rarityObject

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

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/genshin_object/artifact_set.rb', line 6

def name
  @name
end

#slotsObject

Returns the value of attribute slots.



6
7
8
# File 'lib/genshin_object/artifact_set.rb', line 6

def slots
  @slots
end