Class: Wowr::Classes::ItemSpell

Inherits:
Object
  • Object
show all
Defined in:
lib/wowr/item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ ItemSpell

Returns a new instance of ItemSpell.



316
317
318
319
# File 'lib/wowr/item.rb', line 316

def initialize(elem)
	@trigger = (elem%'trigger').html.to_i
	@description = (elem%'desc').html
end

Instance Attribute Details

#descriptionObject (readonly) Also known as: desc, to_s

Returns the value of attribute description.



312
313
314
# File 'lib/wowr/item.rb', line 312

def description
  @description
end

#triggerObject (readonly)

Returns the value of attribute trigger.



312
313
314
# File 'lib/wowr/item.rb', line 312

def trigger
  @trigger
end