Class: Hecks::Ports::Persistence::Entry
- Inherits:
-
Struct
- Object
- Struct
- Hecks::Ports::Persistence::Entry
- Defined in:
- lib/hecks/ports/persistence/append_only.rb
Overview
mirrors is durable replication intent. It is part of the same
append as the authoritative state, never a second outbox store.
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#mirrors ⇒ Object
Returns the value of attribute mirrors.
-
#operation ⇒ Object
Returns the value of attribute operation.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
9 10 11 |
# File 'lib/hecks/ports/persistence/append_only.rb', line 9 def id @id end |
#mirrors ⇒ Object
Returns the value of attribute mirrors
9 10 11 |
# File 'lib/hecks/ports/persistence/append_only.rb', line 9 def mirrors @mirrors end |
#operation ⇒ Object
Returns the value of attribute operation
9 10 11 |
# File 'lib/hecks/ports/persistence/append_only.rb', line 9 def operation @operation end |
#state ⇒ Object
Returns the value of attribute state
9 10 11 |
# File 'lib/hecks/ports/persistence/append_only.rb', line 9 def state @state end |
Instance Method Details
#delete? ⇒ Boolean
11 |
# File 'lib/hecks/ports/persistence/append_only.rb', line 11 def delete? = operation == "delete" |
#save? ⇒ Boolean
10 |
# File 'lib/hecks/ports/persistence/append_only.rb', line 10 def save? = operation == "save" |