Class: SDM::ApprovalWorkflowStep
- Inherits:
-
Object
- Object
- SDM::ApprovalWorkflowStep
- Defined in:
- lib/models/porcelain.rb
Overview
ApprovalWorkflowStep links an approval workflow step to an ApprovalWorkflow
Instance Attribute Summary collapse
-
#approval_flow_id ⇒ Object
The approval flow id specified the approval workflow that this step belongs to.
-
#id ⇒ Object
Unique identifier of the ApprovalWorkflowStep.
-
#quantifier ⇒ Object
Whether "any" or "all" approvers must approve for this approval step to pass.
-
#skip_after ⇒ Object
Duration after which this approval step will be skipped if no approval is given.
-
#step_order ⇒ Object
The position of the approval step in a sequence of approval steps for an approval workflow.
Instance Method Summary collapse
-
#initialize(approval_flow_id: nil, id: nil, quantifier: nil, skip_after: nil, step_order: nil) ⇒ ApprovalWorkflowStep
constructor
A new instance of ApprovalWorkflowStep.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(approval_flow_id: nil, id: nil, quantifier: nil, skip_after: nil, step_order: nil) ⇒ ApprovalWorkflowStep
Returns a new instance of ApprovalWorkflowStep.
3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 |
# File 'lib/models/porcelain.rb', line 3062 def initialize( approval_flow_id: nil, id: nil, quantifier: nil, skip_after: nil, step_order: nil ) @approval_flow_id = approval_flow_id == nil ? "" : approval_flow_id @id = id == nil ? "" : id @quantifier = quantifier == nil ? "" : quantifier @skip_after = skip_after == nil ? nil : skip_after @step_order = step_order == nil ? 0 : step_order end |
Instance Attribute Details
#approval_flow_id ⇒ Object
The approval flow id specified the approval workflow that this step belongs to
3052 3053 3054 |
# File 'lib/models/porcelain.rb', line 3052 def approval_flow_id @approval_flow_id end |
#id ⇒ Object
Unique identifier of the ApprovalWorkflowStep.
3054 3055 3056 |
# File 'lib/models/porcelain.rb', line 3054 def id @id end |
#quantifier ⇒ Object
Whether "any" or "all" approvers must approve for this approval step to pass. Read only field for history commands.
3056 3057 3058 |
# File 'lib/models/porcelain.rb', line 3056 def quantifier @quantifier end |
#skip_after ⇒ Object
Duration after which this approval step will be skipped if no approval is given. Read only field for history commands.
3058 3059 3060 |
# File 'lib/models/porcelain.rb', line 3058 def skip_after @skip_after end |
#step_order ⇒ Object
The position of the approval step in a sequence of approval steps for an approval workflow. Read only field for history commands.
3060 3061 3062 |
# File 'lib/models/porcelain.rb', line 3060 def step_order @step_order end |
Instance Method Details
#to_json(options = {}) ⇒ Object
3076 3077 3078 3079 3080 3081 3082 |
# File 'lib/models/porcelain.rb', line 3076 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |