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.



6651
6652
6653
6654
6655
6656
6657
# File 'lib/models/porcelain.rb', line 6651

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.



6647
6648
6649
# File 'lib/models/porcelain.rb', line 6647

def meta
  @meta
end

#rate_limitObject

Rate limit information.



6649
6650
6651
# File 'lib/models/porcelain.rb', line 6649

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6659
6660
6661
6662
6663
6664
6665
# File 'lib/models/porcelain.rb', line 6659

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