Class: EventsManager::UpdatedRecord

Inherits:
Object
  • Object
show all
Defined in:
lib/events_manager/updated_record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#changesObject (readonly)

Returns the value of attribute changes.



5
6
7
# File 'lib/events_manager/updated_record.rb', line 5

def changes
  @changes
end

#recordObject (readonly)

Returns the value of attribute record.



5
6
7
# File 'lib/events_manager/updated_record.rb', line 5

def record
  @record
end