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.



2481
2482
2483
2484
2485
2486
2487
# File 'lib/models/porcelain.rb', line 2481

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.



2477
2478
2479
# File 'lib/models/porcelain.rb', line 2477

def id
  @id
end

#rate_limitObject

Rate limit information.



2479
2480
2481
# File 'lib/models/porcelain.rb', line 2479

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2489
2490
2491
2492
2493
2494
2495
# File 'lib/models/porcelain.rb', line 2489

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