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.



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

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.



2486
2487
2488
# File 'lib/models/porcelain.rb', line 2486

def id
  @id
end

#rate_limitObject

Rate limit information.



2488
2489
2490
# File 'lib/models/porcelain.rb', line 2488

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2498
2499
2500
2501
2502
2503
2504
# File 'lib/models/porcelain.rb', line 2498

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