Class: Wowr::Classes::ItemCostToken
- Inherits:
-
Object
- Object
- Wowr::Classes::ItemCostToken
- Defined in:
- lib/wowr/classes.rb
Overview
<token icon=“spell_holy_championsbond” id=“29434” count=“60”></token>
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#icon ⇒ Object
readonly
Returns the value of attribute icon.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(elem) ⇒ ItemCostToken
constructor
A new instance of ItemCostToken.
Constructor Details
#initialize(elem) ⇒ ItemCostToken
Returns a new instance of ItemCostToken.
1133 1134 1135 1136 1137 |
# File 'lib/wowr/classes.rb', line 1133 def initialize(elem) @id = elem[:id].to_i @icon = elem[:icon] @count = elem[:count].to_i end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
1131 1132 1133 |
# File 'lib/wowr/classes.rb', line 1131 def count @count end |
#icon ⇒ Object (readonly)
Returns the value of attribute icon.
1131 1132 1133 |
# File 'lib/wowr/classes.rb', line 1131 def icon @icon end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
1131 1132 1133 |
# File 'lib/wowr/classes.rb', line 1131 def id @id end |