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 workfflow that this step belongs to.
-
#id ⇒ Object
Unique identifier of the ApprovalWorkflowStep.
Instance Method Summary collapse
-
#initialize(approval_flow_id: nil, id: nil) ⇒ ApprovalWorkflowStep
constructor
A new instance of ApprovalWorkflowStep.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(approval_flow_id: nil, id: nil) ⇒ ApprovalWorkflowStep
Returns a new instance of ApprovalWorkflowStep.
2721 2722 2723 2724 2725 2726 2727 |
# File 'lib/models/porcelain.rb', line 2721 def initialize( approval_flow_id: nil, id: nil ) @approval_flow_id = approval_flow_id == nil ? "" : approval_flow_id @id = id == nil ? "" : id end |
Instance Attribute Details
#approval_flow_id ⇒ Object
The approval flow id specified the approval workfflow that this step belongs to
2717 2718 2719 |
# File 'lib/models/porcelain.rb', line 2717 def approval_flow_id @approval_flow_id end |
#id ⇒ Object
Unique identifier of the ApprovalWorkflowStep.
2719 2720 2721 |
# File 'lib/models/porcelain.rb', line 2719 def id @id end |
Instance Method Details
#to_json(options = {}) ⇒ Object
2729 2730 2731 2732 2733 2734 2735 |
# File 'lib/models/porcelain.rb', line 2729 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 |