class Synapse::EventSourcing::SnapshotPolicy

Represents a mechanism for determining if an aggregate should have a snapshot taken

Public Instance Methods

should_snapshot?(aggregate) click to toggle source

Returns true if a snapshot should be scheduled for the given aggregate

@param [AggregateRoot] aggregate @return [Boolean]

# File lib/synapse/event_sourcing/snapshot/policy.rb, line 9
def should_snapshot?(aggregate)
  raise NotImplementedError
end