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.



2769
2770
2771
2772
2773
2774
2775
# File 'lib/models/porcelain.rb', line 2769

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.



2765
2766
2767
# File 'lib/models/porcelain.rb', line 2765

def id
  @id
end

#rate_limitObject

Rate limit information.



2767
2768
2769
# File 'lib/models/porcelain.rb', line 2767

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



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

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