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.



13117
13118
13119
13120
13121
# File 'lib/models/porcelain.rb', line 13117

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.



13115
13116
13117
# File 'lib/models/porcelain.rb', line 13115

def workflow_approver
  @workflow_approver
end

Instance Method Details

#to_json(options = {}) ⇒ Object



13123
13124
13125
13126
13127
13128
13129
# File 'lib/models/porcelain.rb', line 13123

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