Class: GenshinObject::Character
- Inherits:
-
Object
- Object
- GenshinObject::Character
- Defined in:
- lib/genshin_object/character.rb
Overview
Base class to represent various Genshin Characters
Instance Attribute Summary collapse
-
#ascension_boss_material_name ⇒ Object
Returns the value of attribute ascension_boss_material_name.
-
#ascension_enemy_material_name ⇒ Object
Returns the value of attribute ascension_enemy_material_name.
-
#ascension_gathering_material_name ⇒ Object
Returns the value of attribute ascension_gathering_material_name.
-
#constellation_five_bonus ⇒ Object
Returns the value of attribute constellation_five_bonus.
-
#constellation_three_bonus ⇒ Object
Returns the value of attribute constellation_three_bonus.
-
#element ⇒ Object
Returns the value of attribute element.
-
#kamera_key ⇒ Object
Returns the value of attribute kamera_key.
-
#name ⇒ Object
Returns the value of attribute name.
-
#nation_name ⇒ Object
Returns the value of attribute nation_name.
-
#rarity ⇒ Object
Returns the value of attribute rarity.
-
#talent_book_name ⇒ Object
Returns the value of attribute talent_book_name.
-
#talent_boss_material_name ⇒ Object
Returns the value of attribute talent_boss_material_name.
-
#talent_rare_material_name ⇒ Object
Returns the value of attribute talent_rare_material_name.
-
#weapon_type ⇒ Object
Returns the value of attribute weapon_type.
Instance Method Summary collapse
-
#initialize(kamera_key:, name:, nation_name:, rarity:, element:, weapon_type:, talent_book_name:, talent_rare_material_name:, talent_boss_material_name:, ascension_boss_material_name:, ascension_gathering_material_name:, ascension_enemy_material_name:, constellation_three_bonus:, constellation_five_bonus:) ⇒ Character
constructor
A new instance of Character.
Constructor Details
#initialize(kamera_key:, name:, nation_name:, rarity:, element:, weapon_type:, talent_book_name:, talent_rare_material_name:, talent_boss_material_name:, ascension_boss_material_name:, ascension_gathering_material_name:, ascension_enemy_material_name:, constellation_three_bonus:, constellation_five_bonus:) ⇒ Character
Returns a new instance of Character.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/genshin_object/character.rb', line 11 def initialize(kamera_key:, name:, nation_name:, rarity:, element:, weapon_type:, talent_book_name:, talent_rare_material_name:, talent_boss_material_name:, ascension_boss_material_name:, ascension_gathering_material_name:, ascension_enemy_material_name:, constellation_three_bonus:, constellation_five_bonus:) @kamera_key = kamera_key @name = name @nation_name = nation_name @rarity = rarity @element = element @weapon_type = weapon_type @talent_book_name = talent_book_name @talent_rare_material_name = talent_rare_material_name @talent_boss_material_name = talent_boss_material_name @ascension_boss_material_name = ascension_boss_material_name @ascension_gathering_material_name = ascension_gathering_material_name @ascension_enemy_material_name = ascension_enemy_material_name @constellation_three_bonus = constellation_three_bonus @constellation_five_bonus = constellation_five_bonus end |
Instance Attribute Details
#ascension_boss_material_name ⇒ Object
Returns the value of attribute ascension_boss_material_name.
6 7 8 |
# File 'lib/genshin_object/character.rb', line 6 def ascension_boss_material_name @ascension_boss_material_name end |
#ascension_enemy_material_name ⇒ Object
Returns the value of attribute ascension_enemy_material_name.
6 7 8 |
# File 'lib/genshin_object/character.rb', line 6 def ascension_enemy_material_name @ascension_enemy_material_name end |
#ascension_gathering_material_name ⇒ Object
Returns the value of attribute ascension_gathering_material_name.
6 7 8 |
# File 'lib/genshin_object/character.rb', line 6 def ascension_gathering_material_name @ascension_gathering_material_name end |
#constellation_five_bonus ⇒ Object
Returns the value of attribute constellation_five_bonus.
6 7 8 |
# File 'lib/genshin_object/character.rb', line 6 def constellation_five_bonus @constellation_five_bonus end |
#constellation_three_bonus ⇒ Object
Returns the value of attribute constellation_three_bonus.
6 7 8 |
# File 'lib/genshin_object/character.rb', line 6 def constellation_three_bonus @constellation_three_bonus end |
#element ⇒ Object
Returns the value of attribute element.
6 7 8 |
# File 'lib/genshin_object/character.rb', line 6 def element @element end |
#kamera_key ⇒ Object
Returns the value of attribute kamera_key.
6 7 8 |
# File 'lib/genshin_object/character.rb', line 6 def kamera_key @kamera_key end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/genshin_object/character.rb', line 6 def name @name end |
#nation_name ⇒ Object
Returns the value of attribute nation_name.
6 7 8 |
# File 'lib/genshin_object/character.rb', line 6 def nation_name @nation_name end |
#rarity ⇒ Object
Returns the value of attribute rarity.
6 7 8 |
# File 'lib/genshin_object/character.rb', line 6 def rarity @rarity end |
#talent_book_name ⇒ Object
Returns the value of attribute talent_book_name.
6 7 8 |
# File 'lib/genshin_object/character.rb', line 6 def talent_book_name @talent_book_name end |
#talent_boss_material_name ⇒ Object
Returns the value of attribute talent_boss_material_name.
6 7 8 |
# File 'lib/genshin_object/character.rb', line 6 def talent_boss_material_name @talent_boss_material_name end |
#talent_rare_material_name ⇒ Object
Returns the value of attribute talent_rare_material_name.
6 7 8 |
# File 'lib/genshin_object/character.rb', line 6 def talent_rare_material_name @talent_rare_material_name end |
#weapon_type ⇒ Object
Returns the value of attribute weapon_type.
6 7 8 |
# File 'lib/genshin_object/character.rb', line 6 def weapon_type @weapon_type end |