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.
10813 10814 10815 10816 10817 10818 10819 |
# File 'lib/models/porcelain.rb', line 10813 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.
10809 10810 10811 |
# File 'lib/models/porcelain.rb', line 10809 def id @id end |
#rate_limit ⇒ Object
Rate limit information.
10811 10812 10813 |
# File 'lib/models/porcelain.rb', line 10811 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
10821 10822 10823 10824 10825 10826 10827 |
# File 'lib/models/porcelain.rb', line 10821 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 |