Class: D3api::HeroSet
- Inherits:
-
Object
- Object
- D3api::HeroSet
- Defined in:
- lib/d3api/hero/set.rb
Instance Attribute Summary collapse
-
#hero_set ⇒ Object
Returns the value of attribute hero_set.
Instance Method Summary collapse
-
#initialize(array) ⇒ HeroSet
constructor
A new instance of HeroSet.
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_set ⇒ Object
Returns the value of attribute hero_set.
3 4 5 |
# File 'lib/d3api/hero/set.rb', line 3 def hero_set @hero_set end |