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.



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_idObject

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

#idObject

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