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



2542
2543
2544
2545
2546
2547
2548
# File 'lib/models/porcelain.rb', line 2542

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.



2538
2539
2540
# File 'lib/models/porcelain.rb', line 2538

def id
  @id
end

#rate_limitObject

Rate limit information.



2540
2541
2542
# File 'lib/models/porcelain.rb', line 2540

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2550
2551
2552
2553
2554
2555
2556
# File 'lib/models/porcelain.rb', line 2550

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