Class: Snapshotable::SnapshotCreator
- Inherits:
-
Object
- Object
- Snapshotable::SnapshotCreator
- Defined in:
- lib/services/snapshot_creator.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(record) ⇒ SnapshotCreator
constructor
A new instance of SnapshotCreator.
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
#call ⇒ Object
9 10 11 |
# File 'lib/services/snapshot_creator.rb', line 9 def call snapshot_attrs end |