Class: D3api::HeroSkillSet
- Inherits:
-
Object
- Object
- D3api::HeroSkillSet
- Defined in:
- lib/d3api/hero/skill_set.rb
Instance Attribute Summary collapse
-
#skill_set ⇒ Object
Returns the value of attribute skill_set.
Instance Method Summary collapse
-
#initialize(skill_type, *attributes) ⇒ HeroSkillSet
constructor
A new instance of HeroSkillSet.
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_set ⇒ Object
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 |