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.
6625 6626 6627 6628 6629 6630 6631 6632 6633 |
# File 'lib/models/porcelain.rb', line 6625 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.
6619 6620 6621 |
# File 'lib/models/porcelain.rb', line 6619 def @meta end |
#peering_group_node ⇒ Object
The created PeeringGroupNode.
6621 6622 6623 |
# File 'lib/models/porcelain.rb', line 6621 def peering_group_node @peering_group_node end |
#rate_limit ⇒ Object
Rate limit information.
6623 6624 6625 |
# File 'lib/models/porcelain.rb', line 6623 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6635 6636 6637 6638 6639 6640 6641 |
# File 'lib/models/porcelain.rb', line 6635 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 |