Class: EventsManager::UpdatedRecord
- Inherits:
-
Object
- Object
- EventsManager::UpdatedRecord
- Defined in:
- lib/events_manager/updated_record.rb
Instance Attribute Summary collapse
-
#changes ⇒ Object
readonly
Returns the value of attribute changes.
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record) ⇒ UpdatedRecord
constructor
A new instance of UpdatedRecord.
Constructor Details
#initialize(record) ⇒ UpdatedRecord
Returns a new instance of UpdatedRecord.
7 8 9 10 |
# File 'lib/events_manager/updated_record.rb', line 7 def initialize(record) @record = record @changes = record.changes end |
Instance Attribute Details
#changes ⇒ Object (readonly)
Returns the value of attribute changes.
5 6 7 |
# File 'lib/events_manager/updated_record.rb', line 5 def changes @changes end |
#record ⇒ Object (readonly)
Returns the value of attribute record.
5 6 7 |
# File 'lib/events_manager/updated_record.rb', line 5 def record @record end |