Class: D3api::Item
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#bonus_affixes ⇒ Object
Returns the value of attribute bonus_affixes.
-
#display_color ⇒ Object
Returns the value of attribute display_color.
-
#icon ⇒ Object
Returns the value of attribute icon.
-
#item_level ⇒ Object
Returns the value of attribute item_level.
-
#max_attacks_per_second ⇒ Object
Returns the value of attribute max_attacks_per_second.
-
#max_dps ⇒ Object
Returns the value of attribute max_dps.
-
#min_attacks_per_second ⇒ Object
Returns the value of attribute min_attacks_per_second.
-
#min_dps ⇒ Object
Returns the value of attribute min_dps.
-
#name ⇒ Object
Returns the value of attribute name.
-
#required_level ⇒ Object
Returns the value of attribute required_level.
-
#salvage ⇒ Object
Returns the value of attribute salvage.
-
#socket_effects ⇒ Object
Returns the value of attribute socket_effects.
-
#tooltip_params ⇒ Object
Returns the value of attribute tooltip_params.
Instance Method Summary collapse
-
#initialize(region, item_hash) ⇒ Item
constructor
A new instance of Item.
Methods included from Request
Methods included from Connection
Constructor Details
#initialize(region, item_hash) ⇒ Item
Returns a new instance of Item.
8 9 10 11 12 13 14 |
# File 'lib/d3api/item.rb', line 8 def initialize(region, item_hash) json_response = find(region, item_hash) values = super json_response set_method(values) end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
3 4 5 |
# File 'lib/d3api/item.rb', line 3 def attributes @attributes end |
#bonus_affixes ⇒ Object
Returns the value of attribute bonus_affixes.
3 4 5 |
# File 'lib/d3api/item.rb', line 3 def bonus_affixes @bonus_affixes end |
#display_color ⇒ Object
Returns the value of attribute display_color.
3 4 5 |
# File 'lib/d3api/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.rb', line 3 def icon @icon end |
#item_level ⇒ Object
Returns the value of attribute item_level.
3 4 5 |
# File 'lib/d3api/item.rb', line 3 def item_level @item_level end |
#max_attacks_per_second ⇒ Object
Returns the value of attribute max_attacks_per_second.
3 4 5 |
# File 'lib/d3api/item.rb', line 3 def max_attacks_per_second @max_attacks_per_second end |
#max_dps ⇒ Object
Returns the value of attribute max_dps.
3 4 5 |
# File 'lib/d3api/item.rb', line 3 def max_dps @max_dps end |
#min_attacks_per_second ⇒ Object
Returns the value of attribute min_attacks_per_second.
3 4 5 |
# File 'lib/d3api/item.rb', line 3 def min_attacks_per_second @min_attacks_per_second end |
#min_dps ⇒ Object
Returns the value of attribute min_dps.
3 4 5 |
# File 'lib/d3api/item.rb', line 3 def min_dps @min_dps end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/d3api/item.rb', line 3 def name @name end |
#required_level ⇒ Object
Returns the value of attribute required_level.
3 4 5 |
# File 'lib/d3api/item.rb', line 3 def required_level @required_level end |
#salvage ⇒ Object
Returns the value of attribute salvage.
3 4 5 |
# File 'lib/d3api/item.rb', line 3 def salvage @salvage end |
#socket_effects ⇒ Object
Returns the value of attribute socket_effects.
3 4 5 |
# File 'lib/d3api/item.rb', line 3 def socket_effects @socket_effects end |
#tooltip_params ⇒ Object
Returns the value of attribute tooltip_params.
3 4 5 |
# File 'lib/d3api/item.rb', line 3 def tooltip_params @tooltip_params end |