Class: SDM::WorkflowApproversCreateRequest

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

Overview

WorkflowApproversCreateRequest specifies the workflowID and approverID of a new workflow approver to be created.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(workflow_approver: nil) ⇒ WorkflowApproversCreateRequest

Returns a new instance of WorkflowApproversCreateRequest.



10561
10562
10563
10564
10565
# File 'lib/models/porcelain.rb', line 10561

def initialize(
  workflow_approver: nil
)
  @workflow_approver = workflow_approver == nil ? nil : workflow_approver
end

Instance Attribute Details

#workflow_approverObject

Parameters to define the new WorkflowApprover.



10559
10560
10561
# File 'lib/models/porcelain.rb', line 10559

def workflow_approver
  @workflow_approver
end

Instance Method Details

#to_json(options = {}) ⇒ Object



10567
10568
10569
10570
10571
10572
10573
# File 'lib/models/porcelain.rb', line 10567

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