class Fog::Compute::Google::Regions
Public Instance Methods
all()
click to toggle source
# File lib/fog/compute/google/models/regions.rb, line 7 def all data = service.list_regions.body load(data["items"] || []) end
get(identity)
click to toggle source
# File lib/fog/compute/google/models/regions.rb, line 12 def get(identity) if region = service.get_region(identity).body new(region) end rescue Fog::Errors::NotFound nil end