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.
7767 7768 7769 7770 7771 7772 7773 7774 7775 |
# File 'lib/models/porcelain.rb', line 7767 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.
7761 7762 7763 |
# File 'lib/models/porcelain.rb', line 7761 def @meta end |
#peering_group_node ⇒ Object
The created PeeringGroupNode.
7763 7764 7765 |
# File 'lib/models/porcelain.rb', line 7763 def peering_group_node @peering_group_node end |
#rate_limit ⇒ Object
Rate limit information.
7765 7766 7767 |
# File 'lib/models/porcelain.rb', line 7765 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7777 7778 7779 7780 7781 7782 7783 |
# File 'lib/models/porcelain.rb', line 7777 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 |