Sha256: bd3a01f30416293fe49c7f82fbc23833a333719242f135a1ba32fe07ec5a2ac7
Contents?: true
Size: 520 Bytes
Versions: 34
Compression:
Stored size: 520 Bytes
Contents
require 'fog/core/collection' require 'fog/google/models/compute/region' module Fog module Compute class Google class Regions < Fog::Collection model Fog::Compute::Google::Region def all data = service.list_regions.body load(data['items'] || []) end def get(identity) if region = service.get_region(identity).body new(region) end rescue Fog::Errors::NotFound nil end end end end end
Version data entries
34 entries across 32 versions & 6 rubygems