Class: Wowr::Classes::Buff
- Inherits:
-
Object
- Object
- Wowr::Classes::Buff
- Defined in:
- lib/wowr/classes.rb
Overview
A buff
Instance Attribute Summary collapse
-
#effect ⇒ Object
readonly
Returns the value of attribute effect.
-
#icon ⇒ Object
readonly
Returns the value of attribute icon.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(elem) ⇒ Buff
constructor
A new instance of Buff.
Constructor Details
#initialize(elem) ⇒ Buff
Returns a new instance of Buff.
621 622 623 624 625 |
# File 'lib/wowr/classes.rb', line 621 def initialize(elem) @name = elem[:name] @effect = elem[:effect] @icon = elem[:icon] end |
Instance Attribute Details
#effect ⇒ Object (readonly)
Returns the value of attribute effect.
619 620 621 |
# File 'lib/wowr/classes.rb', line 619 def effect @effect end |
#icon ⇒ Object (readonly)
Returns the value of attribute icon.
619 620 621 |
# File 'lib/wowr/classes.rb', line 619 def icon @icon end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
619 620 621 |
# File 'lib/wowr/classes.rb', line 619 def name @name end |