Class: D3api::EquippedItem
- Inherits:
-
Object
- Object
- D3api::EquippedItem
- Defined in:
- lib/d3api/item/equipped_item.rb
Instance Attribute Summary collapse
-
#display_color ⇒ Object
Returns the value of attribute display_color.
-
#icon ⇒ Object
Returns the value of attribute icon.
-
#id ⇒ Object
Returns the value of attribute id.
-
#location ⇒ Object
Returns the value of attribute location.
-
#name ⇒ Object
Returns the value of attribute name.
-
#tooltip_params ⇒ Object
Returns the value of attribute tooltip_params.
Instance Method Summary collapse
-
#initialize(array) ⇒ EquippedItem
constructor
A new instance of EquippedItem.
Constructor Details
#initialize(array) ⇒ EquippedItem
Returns a new instance of EquippedItem.
6 7 8 9 10 11 |
# File 'lib/d3api/item/equipped_item.rb', line 6 def initialize(array) location = array[0] attributes = array[1] set_method(location, attributes) end |
Instance Attribute Details
#display_color ⇒ Object
Returns the value of attribute display_color.
3 4 5 |
# File 'lib/d3api/item/equipped_item.rb', line 3 def display_color @display_color end |
#icon ⇒ Object
Returns the value of attribute icon.
3 4 5 |
# File 'lib/d3api/item/equipped_item.rb', line 3 def icon @icon end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/d3api/item/equipped_item.rb', line 3 def id @id end |
#location ⇒ Object
Returns the value of attribute location.
3 4 5 |
# File 'lib/d3api/item/equipped_item.rb', line 3 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/d3api/item/equipped_item.rb', line 3 def name @name end |
#tooltip_params ⇒ Object
Returns the value of attribute tooltip_params.
3 4 5 |
# File 'lib/d3api/item/equipped_item.rb', line 3 def tooltip_params @tooltip_params end |