Class: SDM::ApprovalWorkflowStepDeleteResponse

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

Overview

ApprovalWorkflowStepDeleteResponse returns information about an ApprovalWorkflowStep that was deleted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ApprovalWorkflowStepDeleteResponse.



2778
2779
2780
2781
2782
2783
2784
# File 'lib/models/porcelain.rb', line 2778

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 step id.



2774
2775
2776
# File 'lib/models/porcelain.rb', line 2774

def id
  @id
end

#rate_limitObject

Rate limit information.



2776
2777
2778
# File 'lib/models/porcelain.rb', line 2776

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2786
2787
2788
2789
2790
2791
2792
# File 'lib/models/porcelain.rb', line 2786

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