Class: Hecks::Ports::Persistence::Entry

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



9
10
11
# File 'lib/hecks/ports/persistence/append_only.rb', line 9

def id
  @id
end

#mirrorsObject

Returns the value of attribute mirrors

Returns:

  • (Object)

    the current value of mirrors



9
10
11
# File 'lib/hecks/ports/persistence/append_only.rb', line 9

def mirrors
  @mirrors
end

#operationObject

Returns the value of attribute operation

Returns:

  • (Object)

    the current value of operation



9
10
11
# File 'lib/hecks/ports/persistence/append_only.rb', line 9

def operation
  @operation
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



9
10
11
# File 'lib/hecks/ports/persistence/append_only.rb', line 9

def state
  @state
end

Instance Method Details

#delete?Boolean

Returns:

  • (Boolean)


11
# File 'lib/hecks/ports/persistence/append_only.rb', line 11

def delete? = operation == "delete"

#save?Boolean

Returns:

  • (Boolean)


10
# File 'lib/hecks/ports/persistence/append_only.rb', line 10

def save? = operation == "save"