Class: SDM::WorkflowRole
- Inherits:
-
Object
- Object
- SDM::WorkflowRole
- Defined in:
- lib/models/porcelain.rb
Overview
WorkflowRole links a Role to a Workflow.
Instance Attribute Summary collapse
-
#role_id ⇒ Object
The role id.
-
#workflow_id ⇒ Object
The workflow id.
Instance Method Summary collapse
-
#initialize(role_id: nil, workflow_id: nil) ⇒ WorkflowRole
constructor
A new instance of WorkflowRole.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(role_id: nil, workflow_id: nil) ⇒ WorkflowRole
Returns a new instance of WorkflowRole.
9790 9791 9792 9793 9794 9795 9796 |
# File 'lib/models/porcelain.rb', line 9790 def initialize( role_id: nil, workflow_id: nil ) @role_id = role_id == nil ? "" : role_id @workflow_id = workflow_id == nil ? "" : workflow_id end |
Instance Attribute Details
#role_id ⇒ Object
The role id.
9786 9787 9788 |
# File 'lib/models/porcelain.rb', line 9786 def role_id @role_id end |
#workflow_id ⇒ Object
The workflow id.
9788 9789 9790 |
# File 'lib/models/porcelain.rb', line 9788 def workflow_id @workflow_id end |
Instance Method Details
#to_json(options = {}) ⇒ Object
9798 9799 9800 9801 9802 9803 9804 |
# File 'lib/models/porcelain.rb', line 9798 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 |