Class: Vainglory::Hero
- Inherits:
-
Object
- Object
- Vainglory::Hero
- Defined in:
- lib/vainglory/hero.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Hero
constructor
A new instance of Hero.
Constructor Details
#initialize(name) ⇒ Hero
Returns a new instance of Hero.
4 5 6 |
# File 'lib/vainglory/hero.rb', line 4 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/vainglory/hero.rb', line 3 def name @name end |