Class: Wowr::Classes::Reagent
- Inherits:
-
Object
- Object
- Wowr::Classes::Reagent
- Defined in:
- lib/wowr/classes.rb
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.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(elem) ⇒ Reagent
constructor
A new instance of Reagent.
Constructor Details
#initialize(elem) ⇒ Reagent
Returns a new instance of Reagent.
1261 1262 1263 1264 1265 1266 |
# File 'lib/wowr/classes.rb', line 1261 def initialize(elem) @id = elem[:id].to_i @name = elem[:name] @icon = elem[:icon] @count = elem[:count].to_i end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
1259 1260 1261 |
# File 'lib/wowr/classes.rb', line 1259 def count @count end |
#icon ⇒ Object (readonly)
Returns the value of attribute icon.
1259 1260 1261 |
# File 'lib/wowr/classes.rb', line 1259 def icon @icon end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
1259 1260 1261 |
# File 'lib/wowr/classes.rb', line 1259 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
1259 1260 1261 |
# File 'lib/wowr/classes.rb', line 1259 def name @name end |