Class: Textus::Domain::Policy::Evaluation

Inherits:
Data
  • Object
show all
Defined in:
lib/textus/domain/policy/evaluation.rb

Overview

Immutable context handed to every predicate. ‘manifest` is the manifest (pure, no I/O); `envelope` is the entry under evaluation (nil when no bytes exist yet, e.g. a fresh put). `origin`/`target` are dotted keys; `transition` is the verb symbol.

Instance Attribute Summary collapse

Instance Attribute Details

#actorObject (readonly)

Returns the value of attribute actor

Returns:

  • (Object)

    the current value of actor



10
11
12
# File 'lib/textus/domain/policy/evaluation.rb', line 10

def actor
  @actor
end

#envelopeObject (readonly)

Returns the value of attribute envelope

Returns:

  • (Object)

    the current value of envelope



10
11
12
# File 'lib/textus/domain/policy/evaluation.rb', line 10

def envelope
  @envelope
end

#manifestObject (readonly)

Returns the value of attribute manifest

Returns:

  • (Object)

    the current value of manifest



10
11
12
# File 'lib/textus/domain/policy/evaluation.rb', line 10

def manifest
  @manifest
end

#originObject (readonly)

Returns the value of attribute origin

Returns:

  • (Object)

    the current value of origin



10
11
12
# File 'lib/textus/domain/policy/evaluation.rb', line 10

def origin
  @origin
end

#targetObject (readonly)

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



10
11
12
# File 'lib/textus/domain/policy/evaluation.rb', line 10

def target
  @target
end

#transitionObject (readonly)

Returns the value of attribute transition

Returns:

  • (Object)

    the current value of transition



10
11
12
# File 'lib/textus/domain/policy/evaluation.rb', line 10

def transition
  @transition
end