Sha256: 0578c0353bb1b2338af375f89fe3371d1f172e53313920456a645743bd88e3fe
Contents?: true
Size: 704 Bytes
Versions: 7
Compression:
Stored size: 704 Bytes
Contents
require 'fog/core/collection' require 'fog/dns/models/aws/zone' module Fog module DNS class AWS class Zones < Fog::Collection attribute :marker, :aliases => 'Marker' attribute :max_items, :aliases => 'MaxItems' model Fog::DNS::AWS::Zone def all(options = {}) options['marker'] ||= marker options['maxitems'] ||= max_items data = connection.list_hosted_zones(options).body['HostedZones'] load(data) end def get(zone_id) data = connection.get_hosted_zone(zone_id).body new(data) rescue Excon::Errors::Forbidden nil end end end end end
Version data entries
7 entries across 7 versions & 3 rubygems