Class: SDM::PeeringGroupNodeCreateResponse
- Inherits:
-
Object
- Object
- SDM::PeeringGroupNodeCreateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
PeeringGroupNodeCreateResponse reports how the PeeringGroupNode was created in the system.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#peering_group_node ⇒ Object
The created PeeringGroupNode.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(meta: nil, peering_group_node: nil, rate_limit: nil) ⇒ PeeringGroupNodeCreateResponse
constructor
A new instance of PeeringGroupNodeCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, peering_group_node: nil, rate_limit: nil) ⇒ PeeringGroupNodeCreateResponse
Returns a new instance of PeeringGroupNodeCreateResponse.
8476 8477 8478 8479 8480 8481 8482 8483 8484 |
# File 'lib/models/porcelain.rb', line 8476 def initialize( meta: nil, peering_group_node: nil, rate_limit: nil ) @meta = == nil ? nil : @peering_group_node = peering_group_node == nil ? nil : peering_group_node @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
8470 8471 8472 |
# File 'lib/models/porcelain.rb', line 8470 def @meta end |
#peering_group_node ⇒ Object
The created PeeringGroupNode.
8472 8473 8474 |
# File 'lib/models/porcelain.rb', line 8472 def peering_group_node @peering_group_node end |
#rate_limit ⇒ Object
Rate limit information.
8474 8475 8476 |
# File 'lib/models/porcelain.rb', line 8474 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8486 8487 8488 8489 8490 8491 8492 |
# File 'lib/models/porcelain.rb', line 8486 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 |