Sha256: b1c694a43aafd460475f4a5ff87a00f464aa877f2fb28f79c562daf20ba44fb3
Contents?: true
Size: 488 Bytes
Versions: 16
Compression:
Stored size: 488 Bytes
Contents
require 'fog/core/collection' require 'fog/dns/models/slicehost/zone' module Fog module Slicehost class DNS class Zones < Fog::Collection model Fog::Slicehost::DNS::Zone def all data = connection.get_zones.body['zones'] load(data) end def get(zone_id) data = connection.get_zone(zone_id).body new(data) rescue Excon::Errors::Forbidden nil end end end end end
Version data entries
16 entries across 16 versions & 2 rubygems