require 'fog/core/collection' require 'fog/google/models/compute/server' module Fog module Compute class Google class Servers < Fog::Collection model Fog::Compute::Google::Server def all data = service.list_servers.body["items"] load(data) end def get(identity) data = connection.get_server(identity).body new(data) rescue Excon::Errors::NotFound nil end end end end end