Class: SDM::WorkflowUpdateResponse
- Inherits:
-
Object
- Object
- SDM::WorkflowUpdateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
WorkflowUpdateResponse returns the fields of a Workflow after it has been updated by a WorkflowUpdateRequest.
Instance Attribute Summary collapse
-
#rate_limit ⇒ Object
Rate limit information.
-
#workflow ⇒ Object
The updated workflow.
Instance Method Summary collapse
-
#initialize(rate_limit: nil, workflow: nil) ⇒ WorkflowUpdateResponse
constructor
A new instance of WorkflowUpdateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(rate_limit: nil, workflow: nil) ⇒ WorkflowUpdateResponse
Returns a new instance of WorkflowUpdateResponse.
11137 11138 11139 11140 11141 11142 11143 |
# File 'lib/models/porcelain.rb', line 11137 def initialize( rate_limit: nil, workflow: nil ) @rate_limit = rate_limit == nil ? nil : rate_limit @workflow = workflow == nil ? nil : workflow end |
Instance Attribute Details
#rate_limit ⇒ Object
Rate limit information.
11133 11134 11135 |
# File 'lib/models/porcelain.rb', line 11133 def rate_limit @rate_limit end |
#workflow ⇒ Object
The updated workflow.
11135 11136 11137 |
# File 'lib/models/porcelain.rb', line 11135 def workflow @workflow end |
Instance Method Details
#to_json(options = {}) ⇒ Object
11145 11146 11147 11148 11149 11150 11151 |
# File 'lib/models/porcelain.rb', line 11145 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 |