Class: Smith::Workflow::CompositeBranchExecutionAuthorization
- Inherits:
-
PreparedStepExecutionAuthorization
- Object
- PreparedStepExecutionAuthorization
- Smith::Workflow::CompositeBranchExecutionAuthorization
- Defined in:
- lib/smith/workflow/composite_branch_execution_authorization.rb
Instance Attribute Summary collapse
-
#branch_digest ⇒ Object
readonly
Returns the value of attribute branch_digest.
-
#branch_ordinal ⇒ Object
readonly
Returns the value of attribute branch_ordinal.
-
#execution_digest ⇒ Object
readonly
Returns the value of attribute execution_digest.
-
#execution_namespace ⇒ Object
readonly
Returns the value of attribute execution_namespace.
-
#input_digest ⇒ Object
readonly
Returns the value of attribute input_digest.
-
#plan_digest ⇒ Object
readonly
Returns the value of attribute plan_digest.
Attributes inherited from PreparedStepExecutionAuthorization
#dispatch_claim, #prepared_step
Instance Method Summary collapse
-
#initialize(execution:, input:, **attributes) ⇒ CompositeBranchExecutionAuthorization
constructor
A new instance of CompositeBranchExecutionAuthorization.
Methods inherited from PreparedStepExecutionAuthorization
#active_in_current_execution?, #each_agent_binding, #fetch_agent!, #issued_in_current_process?, #verify_workflow!
Constructor Details
#initialize(execution:, input:, **attributes) ⇒ CompositeBranchExecutionAuthorization
Returns a new instance of CompositeBranchExecutionAuthorization.
13 14 15 16 17 18 19 20 21 |
# File 'lib/smith/workflow/composite_branch_execution_authorization.rb', line 13 def initialize(execution:, input:, **attributes) validate_payloads!(execution, input) @execution_digest = execution.digest.dup.freeze @plan_digest = execution.plan_digest.dup.freeze @input_digest = input.digest.dup.freeze assign_branch_identity(execution.branch) @execution_namespace = execution.execution_namespace.dup.freeze super(**attributes) end |
Instance Attribute Details
#branch_digest ⇒ Object (readonly)
Returns the value of attribute branch_digest.
10 11 12 |
# File 'lib/smith/workflow/composite_branch_execution_authorization.rb', line 10 def branch_digest @branch_digest end |
#branch_ordinal ⇒ Object (readonly)
Returns the value of attribute branch_ordinal.
10 11 12 |
# File 'lib/smith/workflow/composite_branch_execution_authorization.rb', line 10 def branch_ordinal @branch_ordinal end |
#execution_digest ⇒ Object (readonly)
Returns the value of attribute execution_digest.
10 11 12 |
# File 'lib/smith/workflow/composite_branch_execution_authorization.rb', line 10 def execution_digest @execution_digest end |
#execution_namespace ⇒ Object (readonly)
Returns the value of attribute execution_namespace.
10 11 12 |
# File 'lib/smith/workflow/composite_branch_execution_authorization.rb', line 10 def execution_namespace @execution_namespace end |
#input_digest ⇒ Object (readonly)
Returns the value of attribute input_digest.
10 11 12 |
# File 'lib/smith/workflow/composite_branch_execution_authorization.rb', line 10 def input_digest @input_digest end |
#plan_digest ⇒ Object (readonly)
Returns the value of attribute plan_digest.
10 11 12 |
# File 'lib/smith/workflow/composite_branch_execution_authorization.rb', line 10 def plan_digest @plan_digest end |