# File lib/fog/dns/models/aws/records.rb, line 21 def all(options = {}) requires :zone options['MaxItems'] ||= max_items options['Name'] ||= name options['Type'] ||= type data = connection.list_resource_record_sets(zone.id, options).body merge_attributes(data.reject {|key, value| !['IsTruncated', 'MaxItems', 'NextRecordName', 'NextRecordType'].include?(key)}) # leave out the default, read only records data = data['ResourceRecordSets'].reject {|record| ['NS', 'SOA'].include?(record['Type'])} load(data) end