Class: InstantRecord::OutboxMutation
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- InstantRecord::OutboxMutation
- Defined in:
- lib/instant_record/outbox_mutation.rb
Overview
Browser-local durable outbox. One row per write, created in the same transaction as the record change. Drained in insertion order on sync.
Instance Method Summary collapse
Instance Method Details
#as_mutation ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/instant_record/outbox_mutation.rb', line 13 def as_mutation { id: id, record_type: record_type, record_id: record_id, operation: operation, changes: changes_payload, base_version: base_version } end |