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.



477
478
479
480
481
482
483
484
485
486
# File 'lib/wowr/item.rb', line 477

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.



472
473
474
# File 'lib/wowr/item.rb', line 472

def area
  @area
end

#classificationObject (readonly)

Returns the value of attribute classification.



472
473
474
# File 'lib/wowr/item.rb', line 472

def classification
  @classification
end

#idObject (readonly) Also known as: to_i

Returns the value of attribute id.



472
473
474
# File 'lib/wowr/item.rb', line 472

def id
  @id
end

#max_levelObject (readonly)

Returns the value of attribute max_level.



472
473
474
# File 'lib/wowr/item.rb', line 472

def max_level
  @max_level
end

#min_levelObject (readonly)

Returns the value of attribute min_level.



472
473
474
# File 'lib/wowr/item.rb', line 472

def min_level
  @min_level
end

#nameObject (readonly) Also known as: to_s

Returns the value of attribute name.



472
473
474
# File 'lib/wowr/item.rb', line 472

def name
  @name
end

#titleObject (readonly)

Returns the value of attribute title.



472
473
474
# File 'lib/wowr/item.rb', line 472

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



472
473
474
# File 'lib/wowr/item.rb', line 472

def type
  @type
end