Class: Wowr::Classes::ItemSetBonus
- Inherits:
-
Object
- Object
- Wowr::Classes::ItemSetBonus
- Defined in:
- lib/wowr/item.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
(also: #desc, #to_s)
readonly
Returns the value of attribute description.
-
#threshold ⇒ Object
readonly
Returns the value of attribute threshold.
Instance Method Summary collapse
-
#initialize(elem) ⇒ ItemSetBonus
constructor
A new instance of ItemSetBonus.
Constructor Details
#initialize(elem) ⇒ ItemSetBonus
Returns a new instance of ItemSetBonus.
346 347 348 349 |
# File 'lib/wowr/item.rb', line 346 def initialize(elem) @threshold = elem[:threshold].to_i @description = elem[:desc] end |
Instance Attribute Details
#description ⇒ Object (readonly) Also known as: desc, to_s
Returns the value of attribute description.
342 343 344 |
# File 'lib/wowr/item.rb', line 342 def description @description end |
#threshold ⇒ Object (readonly)
Returns the value of attribute threshold.
342 343 344 |
# File 'lib/wowr/item.rb', line 342 def threshold @threshold end |