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



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def aggregate
  @aggregate
end

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def args
  @args
end

#chainObject

Returns the value of attribute chain

Returns:

  • (Object)

    the current value of chain



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def chain
  @chain
end

#commandObject

Returns the value of attribute command

Returns:

  • (Object)

    the current value of command



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def command
  @command
end

#command_nameObject

Returns the value of attribute command_name

Returns:

  • (Object)

    the current value of command_name



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def command_name
  @command_name
end

#domainObject

Returns the value of attribute domain

Returns:

  • (Object)

    the current value of domain



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def domain
  @domain
end

#dry_runObject

Returns the value of attribute dry_run

Returns:

  • (Object)

    the current value of dry_run



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def dry_run
  @dry_run
end

#elementObject

Returns the value of attribute element

Returns:

  • (Object)

    the current value of element



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def element
  @element
end

#entityObject

Returns the value of attribute entity

Returns:

  • (Object)

    the current value of entity



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def entity
  @entity
end

#entity_nameObject

Returns the value of attribute entity_name

Returns:

  • (Object)

    the current value of entity_name



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def entity_name
  @entity_name
end

#instanceObject

Returns the value of attribute instance

Returns:

  • (Object)

    the current value of instance



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def instance
  @instance
end

#old_elementObject

Returns the value of attribute old_element

Returns:

  • (Object)

    the current value of old_element



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def old_element
  @old_element
end

#persistence_outcomeObject

Returns the value of attribute persistence_outcome

Returns:

  • (Object)

    the current value of persistence_outcome



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def persistence_outcome
  @persistence_outcome
end

#planObject

Returns the value of attribute plan

Returns:

  • (Object)

    the current value of plan



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def plan
  @plan
end

#repositoryObject

Returns the value of attribute repository

Returns:

  • (Object)

    the current value of repository



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def repository
  @repository
end

#resultObject

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def result
  @result
end

#routeObject

Returns the value of attribute route

Returns:

  • (Object)

    the current value of route



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def route
  @route
end

#transitionObject

Returns the value of attribute transition

Returns:

  • (Object)

    the current value of transition



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def transition
  @transition
end

#viewObject

Returns the value of attribute view

Returns:

  • (Object)

    the current value of view



46
47
48
# File 'lib/hecks/runtime/entity_interpreter.rb', line 46

def view
  @view
end