Class: D3api::Artisan
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#portrait ⇒ Object
Returns the value of attribute portrait.
-
#slug ⇒ Object
Returns the value of attribute slug.
-
#training ⇒ Object
Returns the value of attribute training.
Instance Method Summary collapse
-
#initialize(region = :us, artisan_type) ⇒ Artisan
constructor
A new instance of Artisan.
Methods included from Request
Methods included from Connection
Constructor Details
#initialize(region = :us, artisan_type) ⇒ Artisan
Returns a new instance of Artisan.
5 6 7 8 9 10 11 |
# File 'lib/d3api/artisan.rb', line 5 def initialize(region=:us, artisan_type) json_response = find(region, artisan_type) values = super json_response set_method(values) end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/d3api/artisan.rb', line 3 def name @name end |
#portrait ⇒ Object
Returns the value of attribute portrait.
3 4 5 |
# File 'lib/d3api/artisan.rb', line 3 def portrait @portrait end |
#slug ⇒ Object
Returns the value of attribute slug.
3 4 5 |
# File 'lib/d3api/artisan.rb', line 3 def slug @slug end |
#training ⇒ Object
Returns the value of attribute training.
3 4 5 |
# File 'lib/d3api/artisan.rb', line 3 def training @training end |