Class: SDM::PeeringGroupNodeCreateResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

PeeringGroupNodeCreateResponse reports how the PeeringGroupNode was created in the system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta: nil, peering_group_node: nil, rate_limit: nil) ⇒ PeeringGroupNodeCreateResponse

Returns a new instance of PeeringGroupNodeCreateResponse.



8489
8490
8491
8492
8493
8494
8495
8496
8497
# File 'lib/models/porcelain.rb', line 8489

def initialize(
  meta: nil,
  peering_group_node: nil,
  rate_limit: nil
)
  @meta = meta == nil ? nil : meta
  @peering_group_node = peering_group_node == nil ? nil : peering_group_node
  @rate_limit = rate_limit == nil ? nil : rate_limit
end

Instance Attribute Details

#metaObject

Reserved for future use.



8483
8484
8485
# File 'lib/models/porcelain.rb', line 8483

def meta
  @meta
end

#peering_group_nodeObject

The created PeeringGroupNode.



8485
8486
8487
# File 'lib/models/porcelain.rb', line 8485

def peering_group_node
  @peering_group_node
end

#rate_limitObject

Rate limit information.



8487
8488
8489
# File 'lib/models/porcelain.rb', line 8487

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



8499
8500
8501
8502
8503
8504
8505
# File 'lib/models/porcelain.rb', line 8499

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end