Class: Wowr::Classes::ItemVendor

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ ItemVendor

Returns a new instance of ItemVendor.



518
519
520
521
522
523
524
525
526
527
# File 'lib/wowr/item.rb', line 518

def initialize(elem)
	@id 						= elem[:id].to_i
	@name 					= elem[:name]
	@title 					= elem[:title]
	@type 					= elem[:type]
	@area 					= elem[:area]
	@classification = elem[:classification].to_i
	@max_level 			= elem[:maxLevel].to_i
	@min_level 			= elem[:minLevel].to_i
end

Instance Attribute Details

#areaObject (readonly)

Returns the value of attribute area.



513
514
515
# File 'lib/wowr/item.rb', line 513

def area
  @area
end

#classificationObject (readonly)

Returns the value of attribute classification.



513
514
515
# File 'lib/wowr/item.rb', line 513

def classification
  @classification
end

#idObject (readonly) Also known as: to_i

Returns the value of attribute id.



513
514
515
# File 'lib/wowr/item.rb', line 513

def id
  @id
end

#max_levelObject (readonly)

Returns the value of attribute max_level.



513
514
515
# File 'lib/wowr/item.rb', line 513

def max_level
  @max_level
end

#min_levelObject (readonly)

Returns the value of attribute min_level.



513
514
515
# File 'lib/wowr/item.rb', line 513

def min_level
  @min_level
end

#nameObject (readonly) Also known as: to_s

Returns the value of attribute name.



513
514
515
# File 'lib/wowr/item.rb', line 513

def name
  @name
end

#titleObject (readonly)

Returns the value of attribute title.



513
514
515
# File 'lib/wowr/item.rb', line 513

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



513
514
515
# File 'lib/wowr/item.rb', line 513

def type
  @type
end