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.



6526
6527
6528
6529
6530
6531
6532
# File 'lib/models/porcelain.rb', line 6526

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.



6522
6523
6524
# File 'lib/models/porcelain.rb', line 6522

def meta
  @meta
end

#rate_limitObject

Rate limit information.



6524
6525
6526
# File 'lib/models/porcelain.rb', line 6524

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6534
6535
6536
6537
6538
6539
6540
# File 'lib/models/porcelain.rb', line 6534

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