Class: GenshinObject::Boss
- Inherits:
-
Object
- Object
- GenshinObject::Boss
- Defined in:
- lib/genshin_object/boss.rb
Overview
Base class to represent bosses
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#nation_name ⇒ Object
Returns the value of attribute nation_name.
Instance Method Summary collapse
-
#initialize(name:, nation_name:) ⇒ Boss
constructor
A new instance of Boss.
Constructor Details
#initialize(name:, nation_name:) ⇒ Boss
Returns a new instance of Boss.
8 9 10 11 |
# File 'lib/genshin_object/boss.rb', line 8 def initialize(name:, nation_name:) @name = name @nation_name = nation_name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/genshin_object/boss.rb', line 6 def name @name end |
#nation_name ⇒ Object
Returns the value of attribute nation_name.
6 7 8 |
# File 'lib/genshin_object/boss.rb', line 6 def nation_name @nation_name end |