Method: Fog::Compute::Google::Regions#get

Defined in:
lib/fog/google/models/compute/regions.rb

#get(identity) ⇒ Object



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

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