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
permalink #initialize(meta: nil, peering_group: nil, rate_limit: nil) ⇒ PeeringGroupGetResponse
Returns a new instance of PeeringGroupGetResponse.
8874 8875 8876 8877 8878 8879 8880 8881 8882 |
# File 'lib/models/porcelain.rb', line 8874 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
permalink #meta ⇒ Object
Reserved for future use.
8868 8869 8870 |
# File 'lib/models/porcelain.rb', line 8868 def @meta end |
permalink #peering_group ⇒ Object
The requested PeeringGroup.
8870 8871 8872 |
# File 'lib/models/porcelain.rb', line 8870 def peering_group @peering_group end |
permalink #rate_limit ⇒ Object
Rate limit information.
8872 8873 8874 |
# File 'lib/models/porcelain.rb', line 8872 def rate_limit @rate_limit end |
Instance Method Details
permalink #to_json(options = {}) ⇒ Object
[View source]
8884 8885 8886 8887 8888 8889 8890 |
# File 'lib/models/porcelain.rb', line 8884 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 |