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
Returns a new instance of WorkflowDeleteResponse.
12370 12371 12372 12373 12374 12375 12376 |
# File 'lib/models/porcelain.rb', line 12370 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.
12366 12367 12368 |
# File 'lib/models/porcelain.rb', line 12366 def id @id end |
#rate_limit ⇒ Object
Rate limit information.
12368 12369 12370 |
# File 'lib/models/porcelain.rb', line 12368 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
12378 12379 12380 12381 12382 12383 12384 |
# File 'lib/models/porcelain.rb', line 12378 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 |