Fog::Collection
# File lib/fog/dreamhost/models/dns/records.rb, line 12 def all(filter = {}) clear if filter[:zone] data = service.list_records.body['data'].find_all { |r| r['zone'] == filter[:zone] } else data = service.list_records.body['data'] end load(data) end
# File lib/fog/dreamhost/models/dns/records.rb, line 22 def get(record_name) data = service.list_records.body['data'].find { |r| r['record'] == record_name } new(data) rescue Excon::Errors::NotFound nil end
[Validate]
Generated with the Darkfish Rdoc Generator 2.