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.



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 = 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.



6619
6620
6621
# File 'lib/models/porcelain.rb', line 6619

def meta
  @meta
end

#peering_group_nodeObject

The created PeeringGroupNode.



6621
6622
6623
# File 'lib/models/porcelain.rb', line 6621

def peering_group_node
  @peering_group_node
end

#rate_limitObject

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(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end