Sha256: 60ab5a8cc40cedc9f616ee060e868a2c2800c6339ae21bea862098a41e5f8d5f
Contents?: true
Size: 527 Bytes
Versions: 34
Compression:
Stored size: 527 Bytes
Contents
require 'fog/core/collection' require 'fog/google/models/compute/network' module Fog module Compute class Google class Networks < Fog::Collection model Fog::Compute::Google::Network def all data = service.list_networks.body load(data['items'] || []) end def get(identity) if network = service.get_network(identity).body new(network) end rescue Fog::Errors::NotFound nil end end end end end
Version data entries
34 entries across 32 versions & 6 rubygems