Class: D3api::HeroSkillSet

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(skill_type, *attributes) ⇒ HeroSkillSet

Returns a new instance of HeroSkillSet.



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

def initialize(skill_type, *attributes)
  skill_set = []
  attributes[0].each do |attribute|
    skill_set << Skill.new(skill_type, attribute)
  end

  set_method(skill_set)
end

Instance Attribute Details

#skill_setObject

Returns the value of attribute skill_set.



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

def skill_set
  @skill_set
end