Class: Wowr::Classes::ItemSetBonus

Inherits:
Object
  • Object
show all
Defined in:
lib/wowr/item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject (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

#thresholdObject (readonly)

Returns the value of attribute threshold.



342
343
344
# File 'lib/wowr/item.rb', line 342

def threshold
  @threshold
end