Class: SDM::PeeringGroupGetResponse
- Inherits:
-
Object
- Object
- SDM::PeeringGroupGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
PeeringGroupGetResponse returns a requested PeeringGroup.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#peering_group ⇒ Object
The requested PeeringGroup.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(meta: nil, peering_group: nil, rate_limit: nil) ⇒ PeeringGroupGetResponse
constructor
A new instance of PeeringGroupGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, peering_group: nil, rate_limit: nil) ⇒ PeeringGroupGetResponse
Returns a new instance of PeeringGroupGetResponse.
8124 8125 8126 8127 8128 8129 8130 8131 8132 |
# File 'lib/models/porcelain.rb', line 8124 def initialize( meta: nil, peering_group: nil, rate_limit: nil ) = == nil ? nil : @peering_group = peering_group == nil ? nil : peering_group @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
8118 8119 8120 |
# File 'lib/models/porcelain.rb', line 8118 def end |
#peering_group ⇒ Object
The requested PeeringGroup.
8120 8121 8122 |
# File 'lib/models/porcelain.rb', line 8120 def peering_group @peering_group end |
#rate_limit ⇒ Object
Rate limit information.
8122 8123 8124 |
# File 'lib/models/porcelain.rb', line 8122 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8134 8135 8136 8137 8138 8139 8140 |
# File 'lib/models/porcelain.rb', line 8134 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |