Class: SDM::ApprovalWorkflowDeleteResponse
- Inherits:
-
Object
- Object
- SDM::ApprovalWorkflowDeleteResponse
- Defined in:
- lib/models/porcelain.rb
Overview
ApprovalWorkflowDeleteResponse returns information about an ApprovalWorkflow that was deleted.
Instance Attribute Summary collapse
-
#id ⇒ Object
The deleted approval workflow id.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(id: nil, rate_limit: nil) ⇒ ApprovalWorkflowDeleteResponse
constructor
A new instance of ApprovalWorkflowDeleteResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, rate_limit: nil) ⇒ ApprovalWorkflowDeleteResponse
Returns a new instance of ApprovalWorkflowDeleteResponse.
2613 2614 2615 2616 2617 2618 2619 |
# File 'lib/models/porcelain.rb', line 2613 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 approval workflow id.
2609 2610 2611 |
# File 'lib/models/porcelain.rb', line 2609 def id @id end |
#rate_limit ⇒ Object
Rate limit information.
2611 2612 2613 |
# File 'lib/models/porcelain.rb', line 2611 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
2621 2622 2623 2624 2625 2626 2627 |
# File 'lib/models/porcelain.rb', line 2621 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 |