Class: SDM::PeeringGroupNodeDeleteResponse

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

Overview

PeeringGroupNodeDeleteResponse returns information about a PeeringGroupNode that was deleted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta: nil, rate_limit: nil) ⇒ PeeringGroupNodeDeleteResponse

Returns a new instance of PeeringGroupNodeDeleteResponse.



10512
10513
10514
10515
10516
10517
10518
# File 'lib/models/porcelain.rb', line 10512

def initialize(
  meta: nil,
  rate_limit: nil
)
  @meta = meta == nil ? nil : meta
  @rate_limit = rate_limit == nil ? nil : rate_limit
end

Instance Attribute Details

#metaObject

Reserved for future use.



10508
10509
10510
# File 'lib/models/porcelain.rb', line 10508

def meta
  @meta
end

#rate_limitObject

Rate limit information.



10510
10511
10512
# File 'lib/models/porcelain.rb', line 10510

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



10520
10521
10522
10523
10524
10525
10526
# File 'lib/models/porcelain.rb', line 10520

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