Class: Hecks::Runtime::EntityInterpreter::Context

Inherits:
Struct
  • Object
show all
Defined in:
lib/hecks/runtime/entity_interpreter.rb

Overview

instance is the PARENT aggregate record (what gets saved and returned) ; element/view are the entity piece itself — view wraps element as it stood at locate_element, pre-mutation, and enforce_ensures builds its own settled wrapper off element as it stands after, the same split the original sequential code made.

chain — S17, ADR 0026 — every entity the dotted verb passes through, root-first ([Handler, Dispatch] for Handler.Dispatch. Bind) ; entity/entity_name stay the CHAIN'S OWN LAST entry, the one a command actually belongs to and a mutation actually targets, so every step written before this ADR (enforce_givens, apply_mutations, advance_lifecycle, element_identity, ...) reads exactly as it always has. Only locate_element walks the chain.

Instance Attribute Summary collapse

Instance Attribute Details

#aggregateObject

Returns the value of attribute aggregate

Returns:

  • (Object)

    the current value of aggregate



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def aggregate
  @aggregate
end

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def args
  @args
end

#chainObject

Returns the value of attribute chain

Returns:

  • (Object)

    the current value of chain



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def chain
  @chain
end

#commandObject

Returns the value of attribute command

Returns:

  • (Object)

    the current value of command



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def command
  @command
end

#command_nameObject

Returns the value of attribute command_name

Returns:

  • (Object)

    the current value of command_name



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def command_name
  @command_name
end

#domainObject

Returns the value of attribute domain

Returns:

  • (Object)

    the current value of domain



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def domain
  @domain
end

#dry_runObject

Returns the value of attribute dry_run

Returns:

  • (Object)

    the current value of dry_run



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def dry_run
  @dry_run
end

#elementObject

Returns the value of attribute element

Returns:

  • (Object)

    the current value of element



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def element
  @element
end

#entityObject

Returns the value of attribute entity

Returns:

  • (Object)

    the current value of entity



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def entity
  @entity
end

#entity_nameObject

Returns the value of attribute entity_name

Returns:

  • (Object)

    the current value of entity_name



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def entity_name
  @entity_name
end

#instanceObject

Returns the value of attribute instance

Returns:

  • (Object)

    the current value of instance



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def instance
  @instance
end

#old_elementObject

Returns the value of attribute old_element

Returns:

  • (Object)

    the current value of old_element



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def old_element
  @old_element
end

#persistence_outcomeObject

Returns the value of attribute persistence_outcome

Returns:

  • (Object)

    the current value of persistence_outcome



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def persistence_outcome
  @persistence_outcome
end

#planObject

Returns the value of attribute plan

Returns:

  • (Object)

    the current value of plan



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def plan
  @plan
end

#repositoryObject

Returns the value of attribute repository

Returns:

  • (Object)

    the current value of repository



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def repository
  @repository
end

#resultObject

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def result
  @result
end

#routeObject

Returns the value of attribute route

Returns:

  • (Object)

    the current value of route



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def route
  @route
end

#transitionObject

Returns the value of attribute transition

Returns:

  • (Object)

    the current value of transition



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def transition
  @transition
end

#viewObject

Returns the value of attribute view

Returns:

  • (Object)

    the current value of view



64
65
66
# File 'lib/hecks/runtime/entity_interpreter.rb', line 64

def view
  @view
end