Module: EntityStore::SnapshotMacro
- Defined in:
- lib/entity_store/entity_store.rb
Instance Method Summary collapse
- #snapshot_macro(cls, interval: nil) ⇒ Object (also: #snapshot)
Instance Method Details
#snapshot_macro(cls, interval: nil) ⇒ Object Also known as: snapshot
251 252 253 254 255 256 257 258 259 |
# File 'lib/entity_store/entity_store.rb', line 251 def snapshot_macro(cls, interval: nil) define_method :snapshot_class do cls end define_method :snapshot_interval do interval end end |