Class: RPG::Class::Learning
- Inherits:
-
Object
- Object
- RPG::Class::Learning
- Defined in:
- lib/rpg/class/learning.rb
Instance Attribute Summary (collapse)
-
- (Object) level
Returns the value of attribute level.
-
- (Object) note
Returns the value of attribute note.
-
- (Object) skill_id
Returns the value of attribute skill_id.
Instance Method Summary (collapse)
-
- (Learning) initialize
constructor
A new instance of Learning.
Constructor Details
- (Learning) initialize
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
- (Object) level
Returns the value of attribute level
9 10 11 |
# File 'lib/rpg/class/learning.rb', line 9 def level @level end |
- (Object) note
Returns the value of attribute note
11 12 13 |
# File 'lib/rpg/class/learning.rb', line 11 def note @note end |
- (Object) skill_id
Returns the value of attribute skill_id
10 11 12 |
# File 'lib/rpg/class/learning.rb', line 10 def skill_id @skill_id end |