Class: D3api::HeroSet

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(array) ⇒ HeroSet

Returns a new instance of HeroSet.



5
6
7
8
9
10
11
12
# File 'lib/d3api/hero/set.rb', line 5

def initialize(array)
  heroes = []
  array.each do |character|
    heroes << character
  end

  set_method(heroes)
end

Instance Attribute Details

#hero_setObject

Returns the value of attribute hero_set.



3
4
5
# File 'lib/d3api/hero/set.rb', line 3

def hero_set
  @hero_set
end