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
3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 |
# File 'lib/models/porcelain.rb', line 3059 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
3049 3050 3051 |
# File 'lib/models/porcelain.rb', line 3049 def approval_flow_id @approval_flow_id end |
#id ⇒ Object
Unique identifier of the ApprovalWorkflowStep.
3051 3052 3053 |
# File 'lib/models/porcelain.rb', line 3051 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.
3053 3054 3055 |
# File 'lib/models/porcelain.rb', line 3053 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.
3055 3056 3057 |
# File 'lib/models/porcelain.rb', line 3055 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.
3057 3058 3059 |
# File 'lib/models/porcelain.rb', line 3057 def step_order @step_order end |
Instance Method Details
#to_json(options = {}) ⇒ Object
3073 3074 3075 3076 3077 3078 3079 |
# File 'lib/models/porcelain.rb', line 3073 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 |