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.



12118
12119
12120
12121
12122
# File 'lib/models/porcelain.rb', line 12118

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.



12116
12117
12118
# File 'lib/models/porcelain.rb', line 12116

def workflow_approver
  @workflow_approver
end

Instance Method Details

#to_json(options = {}) ⇒ Object



12124
12125
12126
12127
12128
12129
12130
# File 'lib/models/porcelain.rb', line 12124

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