Class: Crimson::ModelChange
- Inherits:
-
Object
- Object
- Crimson::ModelChange
- Defined in:
- lib/crimson/model_change.rb
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(old_value, new_value) ⇒ ModelChange
constructor
A new instance of ModelChange.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(old_value, new_value) ⇒ ModelChange
Returns a new instance of ModelChange.
7 8 9 10 |
# File 'lib/crimson/model_change.rb', line 7 def initialize(old_value, new_value) @old_value = old_value @new_value = new_value end |
Instance Attribute Details
#new_value ⇒ Object (readonly)
Returns the value of attribute new_value.
5 6 7 |
# File 'lib/crimson/model_change.rb', line 5 def new_value @new_value end |
#old_value ⇒ Object (readonly)
Returns the value of attribute old_value.
5 6 7 |
# File 'lib/crimson/model_change.rb', line 5 def old_value @old_value end |