Class: Snapshotable::SnapshotCreator

Inherits:
Object
  • Object
show all
Defined in:
lib/services/snapshot_creator.rb

Instance Method Summary collapse

Constructor Details

#initialize(record) ⇒ SnapshotCreator

Returns a new instance of SnapshotCreator.



5
6
7
# File 'lib/services/snapshot_creator.rb', line 5

def initialize(record)
  @record = record
end

Instance Method Details

#callObject



9
10
11
# File 'lib/services/snapshot_creator.rb', line 9

def call
  snapshot_attrs
end