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.



13038
13039
13040
13041
13042
13043
13044
13045
13046
# File 'lib/models/porcelain.rb', line 13038

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.



13032
13033
13034
# File 'lib/models/porcelain.rb', line 13032

def meta
  @meta
end

#peering_groupObject

The created PeeringGroup.



13034
13035
13036
# File 'lib/models/porcelain.rb', line 13034

def peering_group
  @peering_group
end

#rate_limitObject

Rate limit information.



13036
13037
13038
# File 'lib/models/porcelain.rb', line 13036

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



13048
13049
13050
13051
13052
13053
13054
# File 'lib/models/porcelain.rb', line 13048

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