Class: Fog::DNS::Google::Projects

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/google/models/dns/projects.rb

Instance Method Summary collapse

Instance Method Details

#get(identity) ⇒ Fog::DNS::Google::Project

Fetches the representation of an existing Project

Parameters:

  • identity (String)

    Project identity

Returns:



15
16
17
18
19
20
21
# File 'lib/fog/google/models/dns/projects.rb', line 15

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