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.



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_idObject

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

#idObject

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(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end