Sha256: 291c8d4de123f67bf00d6702ea9c0b3f3169e0b875208508ae8cb3156cb035b5
Contents?: true
Size: 492 Bytes
Versions: 25
Compression:
Stored size: 492 Bytes
Contents
require 'fog/core/collection' require 'fog/google/models/compute/zone' module Fog module Compute class Google class Zones < Fog::Collection model Fog::Compute::Google::Zone def all data = service.list_zones.body["items"] || [] load(data) end def get(identity) data = service.get_zone(identity).body new(data) rescue Excon::Errors::NotFound nil end end end end end
Version data entries
25 entries across 25 versions & 2 rubygems