Class: Wowr::Classes::ItemVendor
- Inherits:
-
Object
- Object
- Wowr::Classes::ItemVendor
- Defined in:
- lib/wowr/classes.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
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
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
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 |
# File 'lib/wowr/classes.rb', line 1161 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.
1158 1159 1160 |
# File 'lib/wowr/classes.rb', line 1158 def area @area end |
#classification ⇒ Object (readonly)
Returns the value of attribute classification.
1158 1159 1160 |
# File 'lib/wowr/classes.rb', line 1158 def classification @classification end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
1158 1159 1160 |
# File 'lib/wowr/classes.rb', line 1158 def id @id end |
#max_level ⇒ Object (readonly)
Returns the value of attribute max_level.
1158 1159 1160 |
# File 'lib/wowr/classes.rb', line 1158 def max_level @max_level end |
#min_level ⇒ Object (readonly)
Returns the value of attribute min_level.
1158 1159 1160 |
# File 'lib/wowr/classes.rb', line 1158 def min_level @min_level end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
1158 1159 1160 |
# File 'lib/wowr/classes.rb', line 1158 def name @name end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
1158 1159 1160 |
# File 'lib/wowr/classes.rb', line 1158 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
1158 1159 1160 |
# File 'lib/wowr/classes.rb', line 1158 def type @type end |