Class: Wowr::Classes::ItemSetBonus
- Inherits:
-
Object
- Object
- Wowr::Classes::ItemSetBonus
- Defined in:
- lib/wowr/classes.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
(also: #desc)
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.
918 919 920 921 |
# File 'lib/wowr/classes.rb', line 918 def initialize(elem) @threshold = elem[:threshold].to_i @description = elem[:desc] end |
Instance Attribute Details
#description ⇒ Object (readonly) Also known as: desc
Returns the value of attribute description.
915 916 917 |
# File 'lib/wowr/classes.rb', line 915 def description @description end |
#threshold ⇒ Object (readonly)
Returns the value of attribute threshold.
915 916 917 |
# File 'lib/wowr/classes.rb', line 915 def threshold @threshold end |