Class: SDM::WorkflowDeleteResponse
- Inherits:
-
Object
- Object
- SDM::WorkflowDeleteResponse
- Defined in:
- lib/models/porcelain.rb
Overview
WorkflowDeleteResponse returns information about a Workflow that was deleted.
Instance Attribute Summary collapse
-
#id ⇒ Object
The deleted workflow id.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(id: nil, rate_limit: nil) ⇒ WorkflowDeleteResponse
constructor
A new instance of WorkflowDeleteResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, rate_limit: nil) ⇒ WorkflowDeleteResponse
17679 17680 17681 17682 17683 17684 17685 |
# File 'lib/models/porcelain.rb', line 17679 def initialize( id: nil, rate_limit: nil ) @id = id == nil ? "" : id @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#id ⇒ Object
The deleted workflow id.
17675 17676 17677 |
# File 'lib/models/porcelain.rb', line 17675 def id @id end |
#rate_limit ⇒ Object
Rate limit information.
17677 17678 17679 |
# File 'lib/models/porcelain.rb', line 17677 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
17687 17688 17689 17690 17691 17692 17693 |
# File 'lib/models/porcelain.rb', line 17687 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 |