class Fog::DNS::Google::Projects

Public Instance Methods

get(identity) click to toggle source

Fetches the representation of an existing Project

@param [String] identity Project identity @return [Fog::DNS::Google::Project] Project resource

# File lib/fog/dns/google/models/projects.rb, line 12
def get(identity)
  if project = service.get_project(identity).body
    new(project)
  end
rescue Fog::Errors::NotFound
  nil
end