Class: IBM::Cloud::SDK::VPC::VPNGATEWAY::LocalCIDRs

Inherits:
BaseCollection show all
Defined in:
lib/ibm/cloud/sdk/vpc/vpn_gateway/local_cidrs.rb

Overview

A list of Connection

Instance Attribute Summary

Attributes inherited from BaseVPC

#connection, #endpoint, #logger

Instance Method Summary collapse

Methods inherited from BaseCollection

#all, #count, #create, #data, #fetch, #has_count?, #params

Methods inherited from BaseVPC

#adhoc, #delete, #get, #patch, #post, #put, #url

Constructor Details

#initialize(parent) ⇒ LocalCIDRs

Returns a new instance of LocalCIDRs.



11
12
13
14
15
# 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

Instance Method Details

#instance(cidr_prefix, prefix_length) ⇒ Object



17
18
19
# 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