Class: RPG::BaseItem::Feature
- Inherits:
-
Object
- Object
- RPG::BaseItem::Feature
- Extended by:
- RgssDb::JsonableConstructor
- Includes:
- RgssDb::Jsonable
- Defined in:
- lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/base_item_feature.rb
Overview
The data inner class for features.
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#data_id ⇒ Object
Returns the value of attribute data_id.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(code = 0, data_id = 0, value = 0) ⇒ Feature
constructor
A new instance of Feature.
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Constructor Details
#initialize(code = 0, data_id = 0, value = 0) ⇒ Feature
Returns a new instance of Feature.
20 21 22 23 24 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/base_item_feature.rb', line 20 def initialize(code = 0, data_id = 0, value = 0) @code = code @data_id = data_id @value = value end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
26 27 28 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/base_item_feature.rb', line 26 def code @code end |
#data_id ⇒ Object
Returns the value of attribute data_id.
26 27 28 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/base_item_feature.rb', line 26 def data_id @data_id end |
#value ⇒ Object
Returns the value of attribute value.
26 27 28 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/base_item_feature.rb', line 26 def value @value end |