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.



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

#descriptionObject (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

#triggerObject (readonly)

Returns the value of attribute trigger.



353
354
355
# File 'lib/wowr/item.rb', line 353

def trigger
  @trigger
end