Sha256: b9ca369f706d67db1ca158c3dbea9c9d3090a877b4c48b3e502f225bda9cbd7f
Contents?: true
Size: 487 Bytes
Versions: 34
Compression:
Stored size: 487 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 Fog::Errors::NotFound nil end end end end end
Version data entries
34 entries across 32 versions & 6 rubygems