Class: Rbwowhead::Item

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Item

Returns a new instance of Item.



4
5
6
7
8
9
# File 'lib/rbwowhead/item.rb', line 4

def initialize(data)
  @data = data
  @name = value_for_node('name')
  @ilevel = value_for_node('level')
  @gear_score = value_for_node('gearScore')
end

Instance Attribute Details

#gear_scoreObject (readonly)

Returns the value of attribute gear_score.



3
4
5
# File 'lib/rbwowhead/item.rb', line 3

def gear_score
  @gear_score
end

#ilevelObject (readonly)

Returns the value of attribute ilevel.



3
4
5
# File 'lib/rbwowhead/item.rb', line 3

def ilevel
  @ilevel
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/rbwowhead/item.rb', line 3

def name
  @name
end