Class: Synapse::EventSourcing::SnapshotPolicy
- Inherits:
-
Object
- Object
- Synapse::EventSourcing::SnapshotPolicy
- Defined in:
- lib/synapse/event_sourcing/snapshot/policy.rb
Overview
Represents a mechanism for determining if an aggregate should have a snapshot taken
Direct Known Subclasses
Instance Method Summary collapse
-
#should_snapshot?(aggregate) ⇒ Boolean
Returns true if a snapshot should be scheduled for the given aggregate.
Instance Method Details
#should_snapshot?(aggregate) ⇒ Boolean
Returns true if a snapshot should be scheduled for the given aggregate
9 10 11 |
# File 'lib/synapse/event_sourcing/snapshot/policy.rb', line 9 def should_snapshot?(aggregate) raise NotImplementedError end |