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.



10042
10043
10044
10045
10046
10047
10048
10049
10050
# File 'lib/models/porcelain.rb', line 10042

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.



10036
10037
10038
# File 'lib/models/porcelain.rb', line 10036

def meta
  @meta
end

#peering_groupObject

The created PeeringGroup.



10038
10039
10040
# File 'lib/models/porcelain.rb', line 10038

def peering_group
  @peering_group
end

#rate_limitObject

Rate limit information.



10040
10041
10042
# File 'lib/models/porcelain.rb', line 10040

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



10052
10053
10054
10055
10056
10057
10058
# File 'lib/models/porcelain.rb', line 10052

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