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

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

Defined Under Namespace

Modules: Assurance

Class Method Summary collapse

Class Method Details

.example(category: nil, entity_class: nil, projection_class: nil, snapshot_interval: nil) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/entity_snapshot/postgres/controls/entity_store.rb', line 5

def self.example(category: nil, entity_class: nil, projection_class: nil, snapshot_interval: nil)
  reader_class = MessageStore::Postgres::Read
  snapshot_class = EntitySnapshot::Postgres
  snapshot_interval ||= 2
  category ||= 'example'
  ::EntityStore::Controls::EntityStore.example(category: category, entity_class: entity_class, projection_class: projection_class, reader_class: reader_class, snapshot_class: snapshot_class, snapshot_interval: snapshot_interval)
end