Class: SDM::WorkflowRolesCreateRequest

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

Overview

WorkflowRolesCreateRequest specifies the workflowID and roleID of a new workflow role to be created.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(workflow_role: nil) ⇒ WorkflowRolesCreateRequest

Returns a new instance of WorkflowRolesCreateRequest.



19603
19604
19605
19606
19607
# File 'lib/models/porcelain.rb', line 19603

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

Instance Attribute Details

#workflow_roleObject

Parameters to define the new WorkflowRole.



19601
19602
19603
# File 'lib/models/porcelain.rb', line 19601

def workflow_role
  @workflow_role
end

Instance Method Details

#to_json(options = {}) ⇒ Object



19609
19610
19611
19612
19613
19614
19615
# File 'lib/models/porcelain.rb', line 19609

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