Class: RPG::UsableItem::Effect
- Inherits:
-
Object
- Object
- RPG::UsableItem::Effect
- Defined in:
- lib/rpg/usable_item/effect.rb
Instance Attribute Summary (collapse)
-
- (Object) code
Returns the value of attribute code.
-
- (Object) data_id
Returns the value of attribute data_id.
-
- (Object) value1
Returns the value of attribute value1.
-
- (Object) value2
Returns the value of attribute value2.
Instance Method Summary (collapse)
-
- (Effect) initialize(code = 0, data_id = 0, value1 = 0, value2 = 0)
constructor
A new instance of Effect.
Constructor Details
- (Effect) initialize(code = 0, data_id = 0, value1 = 0, value2 = 0)
Returns a new instance of Effect
4 5 6 7 8 9 |
# File 'lib/rpg/usable_item/effect.rb', line 4 def initialize(code = 0, data_id = 0, value1 = 0, value2 = 0) @code = code @data_id = data_id @value1 = value1 @value2 = value2 end |
Instance Attribute Details
- (Object) code
Returns the value of attribute code
10 11 12 |
# File 'lib/rpg/usable_item/effect.rb', line 10 def code @code end |
- (Object) data_id
Returns the value of attribute data_id
11 12 13 |
# File 'lib/rpg/usable_item/effect.rb', line 11 def data_id @data_id end |
- (Object) value1
Returns the value of attribute value1
12 13 14 |
# File 'lib/rpg/usable_item/effect.rb', line 12 def value1 @value1 end |
- (Object) value2
Returns the value of attribute value2
13 14 15 |
# File 'lib/rpg/usable_item/effect.rb', line 13 def value2 @value2 end |