Class: Sirens::ValueChanged
- Inherits:
-
Object
- Object
- Sirens::ValueChanged
- Defined in:
- lib/models/value_model.rb
Overview
Events
Instance Attribute Summary collapse
-
#new_value ⇒ Object
readonly
Returns the value of attribute new_value.
-
#old_value ⇒ Object
readonly
Returns the value of attribute old_value.
Instance Method Summary collapse
-
#initialize(new_value:, old_value:) ⇒ ValueChanged
constructor
A new instance of ValueChanged.
Constructor Details
#initialize(new_value:, old_value:) ⇒ ValueChanged
Returns a new instance of ValueChanged.
49 50 51 52 |
# File 'lib/models/value_model.rb', line 49 def initialize(new_value:, old_value:) @new_value = new_value @old_value = old_value end |
Instance Attribute Details
#new_value ⇒ Object (readonly)
Returns the value of attribute new_value.
54 55 56 |
# File 'lib/models/value_model.rb', line 54 def new_value @new_value end |
#old_value ⇒ Object (readonly)
Returns the value of attribute old_value.
54 55 56 |
# File 'lib/models/value_model.rb', line 54 def old_value @old_value end |