Class: SDM::ApprovalWorkflowStep

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

ApprovalWorkflowStep links an approval workflow step to an ApprovalWorkflow

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(approval_flow_id: nil, id: nil) ⇒ ApprovalWorkflowStep

Returns a new instance of ApprovalWorkflowStep.



2594
2595
2596
2597
2598
2599
2600
# File 'lib/models/porcelain.rb', line 2594

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_idObject

The approval flow id specified the approval workfflow that this step belongs to



2590
2591
2592
# File 'lib/models/porcelain.rb', line 2590

def approval_flow_id
  @approval_flow_id
end

#idObject

Unique identifier of the ApprovalWorkflowStep.



2592
2593
2594
# File 'lib/models/porcelain.rb', line 2592

def id
  @id
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2602
2603
2604
2605
2606
2607
2608
# File 'lib/models/porcelain.rb', line 2602

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end