Class: SDM::ApprovalWorkflowApproverDeleteResponse

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

Overview

ApprovalWorkflowApproverDeleteResponse returns information about an ApprovalWorkflowApprover that was deleted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ApprovalWorkflowApproverDeleteResponse.



2354
2355
2356
2357
2358
2359
2360
# File 'lib/models/porcelain.rb', line 2354

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



2350
2351
2352
# File 'lib/models/porcelain.rb', line 2350

def id
  @id
end

#rate_limitObject

Rate limit information.



2352
2353
2354
# File 'lib/models/porcelain.rb', line 2352

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2362
2363
2364
2365
2366
2367
2368
# File 'lib/models/porcelain.rb', line 2362

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