Class: D3api::Skill

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_descriptionObject

Returns the value of attribute rune_description.



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

def rune_description
  @rune_description
end

#rune_nameObject

Returns the value of attribute rune_name.



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

def rune_name
  @rune_name
end

#rune_orderObject

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_descriptionObject

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_slugObject

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_paramsObject

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_typeObject

Returns the value of attribute rune_type.



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

def rune_type
  @rune_type
end

#skill_descriptionObject

Returns the value of attribute skill_description.



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

def skill_description
  @skill_description
end

#skill_iconObject

Returns the value of attribute skill_icon.



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

def skill_icon
  @skill_icon
end

#skill_nameObject

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_descriptionObject

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_slugObject

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_urlObject

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_typeObject

Returns the value of attribute skill_type.



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

def skill_type
  @skill_type
end