Sha256: 2bfd5e4c899abbf7b1d908b5ec0fc55ecb2ca63bfa6e61ccb3540591eed83460

Contents?: true

Size: 394 Bytes

Versions: 4

Compression:

Stored size: 394 Bytes

Contents

require 'fog/core/collection'

module Fog
  module Compute
  	class OracleCloud
	    class IpNetworks < Fog::Collection

	    	model Fog::Compute::OracleCloud::IpNetwork
				
				def all
					data = service.list_ip_networks().body['result']
					load(data)
				end

 				def get(name)
          data = service.get_ip_network(name).body
          new(data)
        end
	    end
	  end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.17 lib/fog/oraclecloud/models/compute/ip_networks.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/models/compute/ip_networks.rb
fog-oraclecloud-0.1.15 lib/fog/oraclecloud/models/compute/ip_networks.rb
fog-oraclecloud-0.1.14 lib/fog/oraclecloud/models/compute/ip_networks.rb