Class: SDM::PeeringGroupCreateResponse

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

Overview

PeeringGroupCreateResponse reports how the PeeringGroup was created in the system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta: nil, peering_group: nil, rate_limit: nil) ⇒ PeeringGroupCreateResponse

Returns a new instance of PeeringGroupCreateResponse.



10378
10379
10380
10381
10382
10383
10384
10385
10386
# File 'lib/models/porcelain.rb', line 10378

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

Instance Attribute Details

#metaObject

Reserved for future use.



10372
10373
10374
# File 'lib/models/porcelain.rb', line 10372

def meta
  @meta
end

#peering_groupObject

The created PeeringGroup.



10374
10375
10376
# File 'lib/models/porcelain.rb', line 10374

def peering_group
  @peering_group
end

#rate_limitObject

Rate limit information.



10376
10377
10378
# File 'lib/models/porcelain.rb', line 10376

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



10388
10389
10390
10391
10392
10393
10394
# File 'lib/models/porcelain.rb', line 10388

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