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.



12286
12287
12288
12289
12290
12291
12292
# File 'lib/models/porcelain.rb', line 12286

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.



12282
12283
12284
# File 'lib/models/porcelain.rb', line 12282

def meta
  @meta
end

#rate_limitObject

Rate limit information.



12284
12285
12286
# File 'lib/models/porcelain.rb', line 12284

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



12294
12295
12296
12297
12298
12299
12300
# File 'lib/models/porcelain.rb', line 12294

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