Class: D3api::HeroFollowerSet
- Inherits:
-
Object
- Object
- D3api::HeroFollowerSet
- Defined in:
- lib/d3api/hero/follower_set.rb
Instance Attribute Summary collapse
-
#follower_set ⇒ Object
Returns the value of attribute follower_set.
Instance Method Summary collapse
-
#initialize(follower_array) ⇒ HeroFollowerSet
constructor
A new instance of HeroFollowerSet.
Constructor Details
#initialize(follower_array) ⇒ HeroFollowerSet
Returns a new instance of HeroFollowerSet.
5 6 7 8 9 10 11 12 13 |
# File 'lib/d3api/hero/follower_set.rb', line 5 def initialize(follower_array) followers = [] follower_array.each do |follower| followers << D3api::HeroFollower.new(follower[0], follower[1]) end set_method(followers) end |
Instance Attribute Details
#follower_set ⇒ Object
Returns the value of attribute follower_set.
3 4 5 |
# File 'lib/d3api/hero/follower_set.rb', line 3 def follower_set @follower_set end |