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.
7263 7264 7265 7266 7267 7268 7269 7270 7271 |
# File 'lib/models/porcelain.rb', line 7263 def initialize( meta: nil, peering_group: nil, rate_limit: nil ) @meta = == 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.
7257 7258 7259 |
# File 'lib/models/porcelain.rb', line 7257 def @meta end |
#peering_group ⇒ Object
The requested PeeringGroup.
7259 7260 7261 |
# File 'lib/models/porcelain.rb', line 7259 def peering_group @peering_group end |
#rate_limit ⇒ Object
Rate limit information.
7261 7262 7263 |
# File 'lib/models/porcelain.rb', line 7261 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7273 7274 7275 7276 7277 7278 7279 |
# File 'lib/models/porcelain.rb', line 7273 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 |