require 'fog/core/collection' require 'fog/google/models/compute/image' module Fog module Compute class GCE class Images < Fog::Collection model Fog::Compute::GCE::Image def all data = connection.list_images.body["items"] load(data) end def get(identity) data = connection.get_image(identity).body new(data) rescue Excon::Errors::NotFound nil end end end end end