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.



14241
14242
14243
14244
14245
# File 'lib/models/porcelain.rb', line 14241

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.



14239
14240
14241
# File 'lib/models/porcelain.rb', line 14239

def workflow_role
  @workflow_role
end

Instance Method Details

#to_json(options = {}) ⇒ Object



14247
14248
14249
14250
14251
14252
14253
# File 'lib/models/porcelain.rb', line 14247

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