Module: EntitySnapshot::Postgres::Controls::Snapshot::Put
- Defined in:
- lib/entity_snapshot/postgres/controls/snapshot/put.rb
Class Method Summary collapse
Class Method Details
.call(id = nil, entity: nil, version: nil, time: nil) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/entity_snapshot/postgres/controls/snapshot/put.rb', line 6 def self.call(id=nil, entity: nil, version: nil, time: nil) id ||= ID.example entity ||= Entity.example version ||= Version.example time ||= Time::Raw.example snapshot = Snapshot.example snapshot.put(id, entity, version, time) end |