Class: GodvilleKit::Skill

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_skill_data) ⇒ Skill

Returns a new instance of Skill.



7
8
9
10
11
# File 'lib/godville_kit/skill.rb', line 7

def initialize(raw_skill_data)
  @name = raw_skill_data['name'].to_s
  @level = raw_skill_data['level'].to_s
  @type = raw_skill_data['type'].to_s
end

Instance Attribute Details

#levelObject (readonly)

Returns the value of attribute level.



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

def level
  @level
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end