class IBM::Cloud::SDK::VPC::VPNGATEWAY::LocalCIDRs

A list of Connection

Public Class Methods

new(parent) click to toggle source
Calls superclass method
# File lib/ibm/cloud/sdk/vpc/vpn_gateway/local_cidrs.rb, line 11
def initialize(parent)
  @array_key = 'local_cidrs'
  @instance = Connection
  super(parent, @array_key)
end

Public Instance Methods

instance(cidr_prefix, prefix_length) click to toggle source
Calls superclass method
# File lib/ibm/cloud/sdk/vpc/vpn_gateway/local_cidrs.rb, line 17
def instance(cidr_prefix, prefix_length)
  super(self, "#{cidr_prefix}/#{prefix_length}")
end