Class: Fog::Compute::Google::Projects

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

Instance Method Summary collapse

Instance Method Details

#get(identity) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/fog/compute/google/models/projects.rb', line 7

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