Module: Smith::Workflow::SplitStepPersistence::StateSnapshot

Included in:
Smith::Workflow::SplitStepPersistence
Defined in:
lib/smith/workflow/split_step_persistence/state_snapshot.rb

Instance Method Summary collapse

Instance Method Details

#ledgerObject



20
21
22
23
24
25
# File 'lib/smith/workflow/split_step_persistence/state_snapshot.rb', line 20

def ledger
  return super unless split_step_boundary_active?
  return unless @ledger

  snapshot_split_step_ledger
end

#session_messagesObject



14
15
16
17
18
# File 'lib/smith/workflow/split_step_persistence/state_snapshot.rb', line 14

def session_messages
  return super unless split_step_boundary_active?

  snapshot_session_messages
end

#to_stateObject



7
8
9
10
11
12
# File 'lib/smith/workflow/split_step_persistence/state_snapshot.rb', line 7

def to_state
  state = super
  return state unless split_step_boundary_active?

  snapshot_value(state)
end