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