Class: Wowr::Classes::ItemSpell
- Inherits:
-
Object
- Object
- Wowr::Classes::ItemSpell
- Defined in:
- lib/wowr/item.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
(also: #desc, #to_s)
readonly
Returns the value of attribute description.
-
#trigger ⇒ Object
readonly
Returns the value of attribute trigger.
Instance Method Summary collapse
-
#initialize(elem) ⇒ ItemSpell
constructor
A new instance of ItemSpell.
Constructor Details
#initialize(elem) ⇒ ItemSpell
Returns a new instance of ItemSpell.
357 358 359 360 |
# File 'lib/wowr/item.rb', line 357 def initialize(elem) @trigger = (elem%'trigger').html.to_i @description = (elem%'desc').html end |
Instance Attribute Details
#description ⇒ Object (readonly) Also known as: desc, to_s
Returns the value of attribute description.
353 354 355 |
# File 'lib/wowr/item.rb', line 353 def description @description end |
#trigger ⇒ Object (readonly)
Returns the value of attribute trigger.
353 354 355 |
# File 'lib/wowr/item.rb', line 353 def trigger @trigger end |