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.



6529
6530
6531
6532
6533
6534
6535
# File 'lib/models/porcelain.rb', line 6529

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.



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

def meta
  @meta
end

#rate_limitObject

Rate limit information.



6527
6528
6529
# File 'lib/models/porcelain.rb', line 6527

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6537
6538
6539
6540
6541
6542
6543
# File 'lib/models/porcelain.rb', line 6537

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