Class: SDM::WorkflowRolesCreateRequest
- Inherits:
-
Object
- Object
- SDM::WorkflowRolesCreateRequest
- 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
-
#workflow_role ⇒ Object
Parameters to define the new WorkflowRole.
Instance Method Summary collapse
-
#initialize(workflow_role: nil) ⇒ WorkflowRolesCreateRequest
constructor
A new instance of WorkflowRolesCreateRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(workflow_role: nil) ⇒ WorkflowRolesCreateRequest
Returns a new instance of WorkflowRolesCreateRequest.
11008 11009 11010 11011 11012 |
# File 'lib/models/porcelain.rb', line 11008 def initialize( workflow_role: nil ) @workflow_role = workflow_role == nil ? nil : workflow_role end |
Instance Attribute Details
#workflow_role ⇒ Object
Parameters to define the new WorkflowRole.
11006 11007 11008 |
# File 'lib/models/porcelain.rb', line 11006 def workflow_role @workflow_role end |
Instance Method Details
#to_json(options = {}) ⇒ Object
11014 11015 11016 11017 11018 11019 11020 |
# File 'lib/models/porcelain.rb', line 11014 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |