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



2948
2949
2950
2951
2952
2953
2954
# File 'lib/models/porcelain.rb', line 2948

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.



2944
2945
2946
# File 'lib/models/porcelain.rb', line 2944

def id
  @id
end

#rate_limitObject

Rate limit information.



2946
2947
2948
# File 'lib/models/porcelain.rb', line 2946

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2956
2957
2958
2959
2960
2961
2962
# File 'lib/models/porcelain.rb', line 2956

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