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

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

Instance Method Summary collapse

Instance Method Details

#get(identity) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/fog/google/models/compute/projects.rb', line 10

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