Class: SDM::PeeringGroupResourceCreateResponse
- Inherits:
-
Object
- Object
- SDM::PeeringGroupResourceCreateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
PeeringGroupResourceCreateResponse reports how the attachment was created in the system.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#peering_group_resource ⇒ Object
The created PeeringGroupResource.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(meta: nil, peering_group_resource: nil, rate_limit: nil) ⇒ PeeringGroupResourceCreateResponse
constructor
A new instance of PeeringGroupResourceCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, peering_group_resource: nil, rate_limit: nil) ⇒ PeeringGroupResourceCreateResponse
Returns a new instance of PeeringGroupResourceCreateResponse.
8140 8141 8142 8143 8144 8145 8146 8147 8148 |
# File 'lib/models/porcelain.rb', line 8140 def initialize( meta: nil, peering_group_resource: nil, rate_limit: nil ) @meta = == nil ? nil : @peering_group_resource = peering_group_resource == nil ? nil : peering_group_resource @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
8134 8135 8136 |
# File 'lib/models/porcelain.rb', line 8134 def @meta end |
#peering_group_resource ⇒ Object
The created PeeringGroupResource.
8136 8137 8138 |
# File 'lib/models/porcelain.rb', line 8136 def peering_group_resource @peering_group_resource end |
#rate_limit ⇒ Object
Rate limit information.
8138 8139 8140 |
# File 'lib/models/porcelain.rb', line 8138 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8150 8151 8152 8153 8154 8155 8156 |
# File 'lib/models/porcelain.rb', line 8150 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 |