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.
13693 13694 13695 13696 13697 13698 13699 |
# File 'lib/models/porcelain.rb', line 13693 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.
13689 13690 13691 |
# File 'lib/models/porcelain.rb', line 13689 def rate_limit @rate_limit end |
#workflow ⇒ Object
The updated workflow.
13691 13692 13693 |
# File 'lib/models/porcelain.rb', line 13691 def workflow @workflow end |
Instance Method Details
#to_json(options = {}) ⇒ Object
13701 13702 13703 13704 13705 13706 13707 |
# File 'lib/models/porcelain.rb', line 13701 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 |