Class: GodvilleKit::Skill
- Inherits:
-
Object
- Object
- GodvilleKit::Skill
- Defined in:
- lib/godville_kit/skill.rb
Instance Attribute Summary collapse
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(raw_skill_data) ⇒ Skill
constructor
A new instance of Skill.
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
#level ⇒ Object (readonly)
Returns the value of attribute level.
3 4 5 |
# File 'lib/godville_kit/skill.rb', line 3 def level @level end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/godville_kit/skill.rb', line 3 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/godville_kit/skill.rb', line 3 def type @type end |