class Fog::Compute::Google::Networks
Public Instance Methods
all()
click to toggle source
# File lib/fog/google/models/compute/networks.rb, line 10 def all data = service.list_networks.body load(data['items'] || []) end
get(identity)
click to toggle source
# File lib/fog/google/models/compute/networks.rb, line 15 def get(identity) if network = service.get_network(identity).body new(network) end rescue Fog::Errors::NotFound nil end