Methods

Class/Module Index [+]

Quicksearch

Fog::DNS::Dreamhost::Records

Public Instance Methods

all(filter = {}) click to toggle source
# 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
get(record_name) click to toggle source
# 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.