Sha256: 8c0d88038d047e4adafaec5ab1d96fc4ec57adca7fb22b4f41258c305e46d19f
Contents?: true
Size: 703 Bytes
Versions: 14
Compression:
Stored size: 703 Bytes
Contents
require 'fog/core/collection' require 'fog/aws/models/dns/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::NotFound nil end end end end end
Version data entries
14 entries across 14 versions & 8 rubygems