Class: D3api::Skill
- Inherits:
-
Object
- Object
- D3api::Skill
- Defined in:
- lib/d3api/skill.rb
Instance Attribute Summary collapse
-
#rune_description ⇒ Object
Returns the value of attribute rune_description.
-
#rune_name ⇒ Object
Returns the value of attribute rune_name.
-
#rune_order ⇒ Object
Returns the value of attribute rune_order.
-
#rune_simple_description ⇒ Object
Returns the value of attribute rune_simple_description.
-
#rune_slug ⇒ Object
Returns the value of attribute rune_slug.
-
#rune_tooltip_params ⇒ Object
Returns the value of attribute rune_tooltip_params.
-
#rune_type ⇒ Object
Returns the value of attribute rune_type.
-
#skill_description ⇒ Object
Returns the value of attribute skill_description.
-
#skill_icon ⇒ Object
Returns the value of attribute skill_icon.
-
#skill_name ⇒ Object
Returns the value of attribute skill_name.
-
#skill_simple_description ⇒ Object
Returns the value of attribute skill_simple_description.
-
#skill_slug ⇒ Object
Returns the value of attribute skill_slug.
-
#skill_tooltip_url ⇒ Object
Returns the value of attribute skill_tooltip_url.
-
#skill_type ⇒ Object
Returns the value of attribute skill_type.
Instance Method Summary collapse
-
#initialize(skill_type, attributes) ⇒ Skill
constructor
A new instance of Skill.
Constructor Details
#initialize(skill_type, attributes) ⇒ Skill
Returns a new instance of Skill.
9 10 11 12 13 14 15 |
# File 'lib/d3api/skill.rb', line 9 def initialize(skill_type, attributes) skill_type = skill_type skill = attributes['skill'] rune = attributes['rune'] set_method(skill_type, skill, rune) end |
Instance Attribute Details
#rune_description ⇒ Object
Returns the value of attribute rune_description.
3 4 5 |
# File 'lib/d3api/skill.rb', line 3 def rune_description @rune_description end |
#rune_name ⇒ Object
Returns the value of attribute rune_name.
3 4 5 |
# File 'lib/d3api/skill.rb', line 3 def rune_name @rune_name end |
#rune_order ⇒ Object
Returns the value of attribute rune_order.
3 4 5 |
# File 'lib/d3api/skill.rb', line 3 def rune_order @rune_order end |
#rune_simple_description ⇒ Object
Returns the value of attribute rune_simple_description.
3 4 5 |
# File 'lib/d3api/skill.rb', line 3 def rune_simple_description @rune_simple_description end |
#rune_slug ⇒ Object
Returns the value of attribute rune_slug.
3 4 5 |
# File 'lib/d3api/skill.rb', line 3 def rune_slug @rune_slug end |
#rune_tooltip_params ⇒ Object
Returns the value of attribute rune_tooltip_params.
3 4 5 |
# File 'lib/d3api/skill.rb', line 3 def rune_tooltip_params @rune_tooltip_params end |
#rune_type ⇒ Object
Returns the value of attribute rune_type.
3 4 5 |
# File 'lib/d3api/skill.rb', line 3 def rune_type @rune_type end |
#skill_description ⇒ Object
Returns the value of attribute skill_description.
3 4 5 |
# File 'lib/d3api/skill.rb', line 3 def skill_description @skill_description end |
#skill_icon ⇒ Object
Returns the value of attribute skill_icon.
3 4 5 |
# File 'lib/d3api/skill.rb', line 3 def skill_icon @skill_icon end |
#skill_name ⇒ Object
Returns the value of attribute skill_name.
3 4 5 |
# File 'lib/d3api/skill.rb', line 3 def skill_name @skill_name end |
#skill_simple_description ⇒ Object
Returns the value of attribute skill_simple_description.
3 4 5 |
# File 'lib/d3api/skill.rb', line 3 def skill_simple_description @skill_simple_description end |
#skill_slug ⇒ Object
Returns the value of attribute skill_slug.
3 4 5 |
# File 'lib/d3api/skill.rb', line 3 def skill_slug @skill_slug end |
#skill_tooltip_url ⇒ Object
Returns the value of attribute skill_tooltip_url.
3 4 5 |
# File 'lib/d3api/skill.rb', line 3 def skill_tooltip_url @skill_tooltip_url end |
#skill_type ⇒ Object
Returns the value of attribute skill_type.
3 4 5 |
# File 'lib/d3api/skill.rb', line 3 def skill_type @skill_type end |