Class: Rbwowhead::Item
- Inherits:
-
Object
- Object
- Rbwowhead::Item
- Defined in:
- lib/rbwowhead/item.rb
Instance Attribute Summary collapse
-
#gear_score ⇒ Object
readonly
Returns the value of attribute gear_score.
-
#ilevel ⇒ Object
readonly
Returns the value of attribute ilevel.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(data) ⇒ Item
constructor
A new instance of Item.
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_score ⇒ Object (readonly)
Returns the value of attribute gear_score.
3 4 5 |
# File 'lib/rbwowhead/item.rb', line 3 def gear_score @gear_score end |
#ilevel ⇒ Object (readonly)
Returns the value of attribute ilevel.
3 4 5 |
# File 'lib/rbwowhead/item.rb', line 3 def ilevel @ilevel end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/rbwowhead/item.rb', line 3 def name @name end |