Class: GenshinObject::Character

Inherits:
Object
  • Object
show all
Defined in:
lib/genshin_object/character.rb

Overview

Base class to represent various Genshin Characters

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject

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_nameObject

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_nameObject

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_bonusObject

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_bonusObject

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

#elementObject

Returns the value of attribute element.



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

def element
  @element
end

#kamera_keyObject

Returns the value of attribute kamera_key.



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

def kamera_key
  @kamera_key
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#nation_nameObject

Returns the value of attribute nation_name.



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

def nation_name
  @nation_name
end

#rarityObject

Returns the value of attribute rarity.



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

def rarity
  @rarity
end

#talent_book_nameObject

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_nameObject

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_nameObject

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_typeObject

Returns the value of attribute weapon_type.



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

def weapon_type
  @weapon_type
end