Class: SDM::ApprovalWorkflowDeleteResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

ApprovalWorkflowDeleteResponse returns information about an ApprovalWorkflow that was deleted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: nil, rate_limit: nil) ⇒ ApprovalWorkflowDeleteResponse

Returns a new instance of ApprovalWorkflowDeleteResponse.



2622
2623
2624
2625
2626
2627
2628
# File 'lib/models/porcelain.rb', line 2622

def initialize(
  id: nil,
  rate_limit: nil
)
  @id = id == nil ? "" : id
  @rate_limit = rate_limit == nil ? nil : rate_limit
end

Instance Attribute Details

#idObject

The deleted approval workflow id.



2618
2619
2620
# File 'lib/models/porcelain.rb', line 2618

def id
  @id
end

#rate_limitObject

Rate limit information.



2620
2621
2622
# File 'lib/models/porcelain.rb', line 2620

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2630
2631
2632
2633
2634
2635
2636
# File 'lib/models/porcelain.rb', line 2630

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end