Sha256: 61286ebb0f2afbe68c727dfd60e8067282f0fc590b486c98166087ac707f2a0e
Contents?: true
Size: 471 Bytes
Versions: 15
Compression:
Stored size: 471 Bytes
Contents
module Fog module Compute class Google class Zones < Fog::Collection model Fog::Compute::Google::Zone def all data = service.list_zones.to_h[:items] || [] load(data) end def get(identity) data = service.get_zone(identity).to_h new(data) rescue ::Google::Apis::ClientError => e raise e unless e.status_code == 404 nil end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems