Class: D3api::HeroFollowerSet

Inherits:
Object
  • Object
show all
Defined in:
lib/d3api/hero/follower_set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_setObject

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