Class: Wowr::Classes::ItemVendor
- Inherits:
-
Object
- Object
- Wowr::Classes::ItemVendor
- Defined in:
- lib/wowr/item.rb
Instance Attribute Summary collapse
-
#area ⇒ Object
readonly
Returns the value of attribute area.
-
#classification ⇒ Object
readonly
Returns the value of attribute classification.
-
#id ⇒ Object
(also: #to_i)
readonly
Returns the value of attribute id.
-
#max_level ⇒ Object
readonly
Returns the value of attribute max_level.
-
#min_level ⇒ Object
readonly
Returns the value of attribute min_level.
-
#name ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute name.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(elem) ⇒ ItemVendor
constructor
A new instance of ItemVendor.
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
#area ⇒ Object (readonly)
Returns the value of attribute area.
513 514 515 |
# File 'lib/wowr/item.rb', line 513 def area @area end |
#classification ⇒ Object (readonly)
Returns the value of attribute classification.
513 514 515 |
# File 'lib/wowr/item.rb', line 513 def classification @classification end |
#id ⇒ Object (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_level ⇒ Object (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_level ⇒ Object (readonly)
Returns the value of attribute min_level.
513 514 515 |
# File 'lib/wowr/item.rb', line 513 def min_level @min_level end |
#name ⇒ Object (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 |
#title ⇒ Object (readonly)
Returns the value of attribute title.
513 514 515 |
# File 'lib/wowr/item.rb', line 513 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
513 514 515 |
# File 'lib/wowr/item.rb', line 513 def type @type end |