Class: RPG::BaseItem::Feature

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

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

#codeObject

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_idObject

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

#valueObject

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