Sha256: 950c136a0a54734289034ce44dad88105ac04a0ba14941898e32760cae04d324

Contents?: true

Size: 531 Bytes

Versions: 14

Compression:

Stored size: 531 Bytes

Contents

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

        ##
        # Fetches the representation of an existing Project
        #
        # @param [String] identity Project identity
        # @return [Fog::DNS::Google::Project] Project resource
        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/dns/google/models/projects.rb
fog-google-0.5.5 lib/fog/dns/google/models/projects.rb
fog-google-0.5.4 lib/fog/dns/google/models/projects.rb
fog-google-0.5.3 lib/fog/dns/google/models/projects.rb
fog-google-0.5.2 lib/fog/dns/google/models/projects.rb
fog-google-0.5.1 lib/fog/dns/google/models/projects.rb
fog-google-0.5.0 lib/fog/dns/google/models/projects.rb
fog-google-0.4.2 lib/fog/dns/google/models/projects.rb
fog-google-0.4.1 lib/fog/dns/google/models/projects.rb
fog-google-0.4.0 lib/fog/dns/google/models/projects.rb
fog-google-0.3.2 lib/fog/dns/google/models/projects.rb
fog-google-0.3.1 lib/fog/dns/google/models/projects.rb
fog-google-0.3.0 lib/fog/dns/google/models/projects.rb
fog-google-0.2.0 lib/fog/dns/google/models/projects.rb