Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fog-google / lib / fog / compute / google / models / projects.rb
Size: Mime:
module Fog
  module Compute
    class Google
      class Projects < Fog::Collection
        model Fog::Compute::Google::Project

        def get(identity)
          if identity
            project = service.get_project(identity).to_h
            return new(project)
          end
        rescue ::Google::Apis::ClientError => e
          raise e unless e.status_code == 404
          nil
        end
      end
    end
  end
end