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.
2730 2731 2732 2733 2734 2735 2736 |
# File 'lib/models/porcelain.rb', line 2730 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
2726 2727 2728 |
# File 'lib/models/porcelain.rb', line 2726 def approval_flow_id @approval_flow_id end |
#id ⇒ Object
Unique identifier of the ApprovalWorkflowStep.
2728 2729 2730 |
# File 'lib/models/porcelain.rb', line 2728 def id @id end |
Instance Method Details
#to_json(options = {}) ⇒ Object
2738 2739 2740 2741 2742 2743 2744 |
# File 'lib/models/porcelain.rb', line 2738 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 |