Sha256: ed3e8aed889e624061573bfe346e52659b411cd6d28a9558b0790de44214532f
Contents?: true
Size: 470 Bytes
Versions: 39
Compression:
Stored size: 470 Bytes
Contents
require 'fog/core/collection' require 'fog/bluebox/models/dns/zone' module Fog module DNS class Bluebox class Zones < Fog::Collection model Fog::DNS::Bluebox::Zone def all data = service.get_zones.body['zones'] load(data) end def get(zone_id) data = service.get_zone(zone_id).body new(data) rescue Fog::Service::NotFound nil end end end end end
Version data entries
39 entries across 37 versions & 5 rubygems