Class: RPG::Class::Learning

Inherits:
Object
  • Object
show all
Defined in:
lib/rpg/class/learning.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLearning

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

#levelObject

Returns the value of attribute level.



9
10
11
# File 'lib/rpg/class/learning.rb', line 9

def level
  @level
end

#noteObject

Returns the value of attribute note.



11
12
13
# File 'lib/rpg/class/learning.rb', line 11

def note
  @note
end

#skill_idObject

Returns the value of attribute skill_id.



10
11
12
# File 'lib/rpg/class/learning.rb', line 10

def skill_id
  @skill_id
end