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.
13369 13370 13371 13372 13373 13374 13375 |
# File 'lib/models/porcelain.rb', line 13369 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.
13365 13366 13367 |
# File 'lib/models/porcelain.rb', line 13365 def id @id end |
#rate_limit ⇒ Object
Rate limit information.
13367 13368 13369 |
# File 'lib/models/porcelain.rb', line 13367 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
13377 13378 13379 13380 13381 13382 13383 |
# File 'lib/models/porcelain.rb', line 13377 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 |