Class: Plutonium::Interaction::Async::Context::Targets

Inherits:
Struct
  • Object
show all
Defined in:
lib/plutonium/interaction/async/context.rb

Overview

Resolved targets, split three ways.

records passed BOTH checks: visible in the scope, and permitted by the policy predicate. missing_ids was deleted or fell out of scope. unauthorized_ids is still visible but the initiator may no longer act on it.

The two failure buckets are surfaced rather than swallowed, and kept apart because they mean different things to an operator: "that record is gone" and "you may no longer archive that record" call for different responses. Silence in either is how bulk operations quietly under-apply — the run reports success having touched half the records.

Instance Attribute Summary collapse

Instance Attribute Details

#missing_idsObject

Returns the value of attribute missing_ids

Returns:

  • (Object)

    the current value of missing_ids



82
83
84
# File 'lib/plutonium/interaction/async/context.rb', line 82

def missing_ids
  @missing_ids
end

#recordsObject

Returns the value of attribute records

Returns:

  • (Object)

    the current value of records



82
83
84
# File 'lib/plutonium/interaction/async/context.rb', line 82

def records
  @records
end

#unauthorized_idsObject

Returns the value of attribute unauthorized_ids

Returns:

  • (Object)

    the current value of unauthorized_ids



82
83
84
# File 'lib/plutonium/interaction/async/context.rb', line 82

def unauthorized_ids
  @unauthorized_ids
end