Class: RPG::Class::Learning

Inherits:
Object
  • Object
show all
Extended by:
RgssDb::JsonableConstructor
Includes:
RgssDb::Jsonable
Defined in:
lib/rgss_db/model/rpg_maker_data/vx/rpg/class_learning.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/class_learning.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/class_learning.rb

Overview

The data class for a class’s [Skills to Learn].

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

Constructor Details

#initializeLearning

Returns a new instance of Learning.



12
13
14
15
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/class_learning.rb', line 12

def initialize
  @level = 1
  @skill_id = 1
end

Instance Attribute Details

#levelObject

Returns the value of attribute level.



17
18
19
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/class_learning.rb', line 17

def level
  @level
end

#noteObject

Returns the value of attribute note.



21
22
23
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/class_learning.rb', line 21

def note
  @note
end

#skill_idObject

Returns the value of attribute skill_id.



17
18
19
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/class_learning.rb', line 17

def skill_id
  @skill_id
end