Class: RPG::Class::Learning
- Inherits:
-
Object
- Object
- RPG::Class::Learning
- Defined in:
- lib/rpg/class/learning.rb
Instance Attribute Summary collapse
-
#level ⇒ Object
Returns the value of attribute level.
-
#note ⇒ Object
Returns the value of attribute note.
-
#skill_id ⇒ Object
Returns the value of attribute skill_id.
Instance Method Summary collapse
-
#initialize ⇒ Learning
constructor
A new instance of Learning.
Constructor Details
#initialize ⇒ Learning
Returns a new instance of Learning.
4 5 6 7 8 |
# File 'lib/rpg/class/learning.rb', line 4 def initialize @level = 1 @skill_id = 1 @note = '' end |
Instance Attribute Details
#level ⇒ Object
Returns the value of attribute level.
9 10 11 |
# File 'lib/rpg/class/learning.rb', line 9 def level @level end |
#note ⇒ Object
Returns the value of attribute note.
11 12 13 |
# File 'lib/rpg/class/learning.rb', line 11 def note @note end |
#skill_id ⇒ Object
Returns the value of attribute skill_id.
10 11 12 |
# File 'lib/rpg/class/learning.rb', line 10 def skill_id @skill_id end |