Module: EntitySnapshot::Postgres::Controls::EntityStore::Assurance

Defined in:
lib/entity_snapshot/postgres/controls/entity_store.rb

Defined Under Namespace

Classes: Example

Class Method Summary collapse

Class Method Details

.example(snapshot_class: nil, snapshot_interval: nil) ⇒ Object



14
15
16
17
18
19
# File 'lib/entity_snapshot/postgres/controls/entity_store.rb', line 14

def self.example(snapshot_class: nil, snapshot_interval: nil)
  Example.new.tap do |instance|
    instance.snapshot_class = snapshot_class
    instance.snapshot_interval = snapshot_interval
  end
end