Sha256: 26fa61c07bb55d9114f29593e5785cf01f35298d7880d0220b8a47e1a92792b4

Contents?: true

Size: 343 Bytes

Versions: 14

Compression:

Stored size: 343 Bytes

Contents

module Fog
  module Compute
    class Google
      class Projects < Fog::Collection
        model Fog::Compute::Google::Project

        def get(identity)
          if project = service.get_project(identity).body
            new(project)
          end
        rescue Fog::Errors::NotFound
          nil
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-0.6.0 lib/fog/compute/google/models/projects.rb
fog-google-0.5.5 lib/fog/compute/google/models/projects.rb
fog-google-0.5.4 lib/fog/compute/google/models/projects.rb
fog-google-0.5.3 lib/fog/compute/google/models/projects.rb
fog-google-0.5.2 lib/fog/compute/google/models/projects.rb
fog-google-0.5.1 lib/fog/compute/google/models/projects.rb
fog-google-0.5.0 lib/fog/compute/google/models/projects.rb
fog-google-0.4.2 lib/fog/compute/google/models/projects.rb
fog-google-0.4.1 lib/fog/compute/google/models/projects.rb
fog-google-0.4.0 lib/fog/compute/google/models/projects.rb
fog-google-0.3.2 lib/fog/compute/google/models/projects.rb
fog-google-0.3.1 lib/fog/compute/google/models/projects.rb
fog-google-0.3.0 lib/fog/compute/google/models/projects.rb
fog-google-0.2.0 lib/fog/compute/google/models/projects.rb