Class: D3api::HeroFollower
- Inherits:
-
Object
- Object
- D3api::HeroFollower
- Defined in:
- lib/d3api/hero/follower.rb
Instance Attribute Summary collapse
-
#follower_type ⇒ Object
Returns the value of attribute follower_type.
-
#items ⇒ Object
Returns the value of attribute items.
-
#level ⇒ Object
Returns the value of attribute level.
-
#skills ⇒ Object
Returns the value of attribute skills.
-
#slug ⇒ Object
Returns the value of attribute slug.
Instance Method Summary collapse
-
#initialize(follower_type, attributes) ⇒ HeroFollower
constructor
A new instance of HeroFollower.
Constructor Details
#initialize(follower_type, attributes) ⇒ HeroFollower
Returns a new instance of HeroFollower.
6 7 8 9 10 11 |
# File 'lib/d3api/hero/follower.rb', line 6 def initialize(follower_type, attributes) follower_type = follower_type attributes = attributes set_method(follower_type, attributes) end |
Instance Attribute Details
#follower_type ⇒ Object
Returns the value of attribute follower_type.
3 4 5 |
# File 'lib/d3api/hero/follower.rb', line 3 def follower_type @follower_type end |
#items ⇒ Object
Returns the value of attribute items.
3 4 5 |
# File 'lib/d3api/hero/follower.rb', line 3 def items @items end |
#level ⇒ Object
Returns the value of attribute level.
3 4 5 |
# File 'lib/d3api/hero/follower.rb', line 3 def level @level end |
#skills ⇒ Object
Returns the value of attribute skills.
3 4 5 |
# File 'lib/d3api/hero/follower.rb', line 3 def skills @skills end |
#slug ⇒ Object
Returns the value of attribute slug.
3 4 5 |
# File 'lib/d3api/hero/follower.rb', line 3 def slug @slug end |