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
12942 12943 12944 12945 12946 12947 12948 12949 12950 |
# File 'lib/models/porcelain.rb', line 12942 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.
12936 12937 12938 |
# File 'lib/models/porcelain.rb', line 12936 def end |
#peering_group ⇒ Object
The requested PeeringGroup.
12938 12939 12940 |
# File 'lib/models/porcelain.rb', line 12938 def peering_group @peering_group end |
#rate_limit ⇒ Object
Rate limit information.
12940 12941 12942 |
# File 'lib/models/porcelain.rb', line 12940 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
12952 12953 12954 12955 12956 12957 12958 |
# File 'lib/models/porcelain.rb', line 12952 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 |