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.



13100
13101
13102
13103
13104
# File 'lib/models/porcelain.rb', line 13100

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.



13098
13099
13100
# File 'lib/models/porcelain.rb', line 13098

def workflow_approver
  @workflow_approver
end

Instance Method Details

#to_json(options = {}) ⇒ Object



13106
13107
13108
13109
13110
13111
13112
# File 'lib/models/porcelain.rb', line 13106

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