class Fog::HP::DNS::Domains

Public Instance Methods

all() click to toggle source
# File lib/fog/hp/models/dns/domains.rb, line 10
def all
  load(service.list_domains.body['domains'])
end
get(domain_id) click to toggle source
# File lib/fog/hp/models/dns/domains.rb, line 14
def get(domain_id)
  ### Inconsistent API - does not return a 'domain'
  if domain = service.get_domain(domain_id).body
    new(domain)
  end
rescue Fog::HP::DNS::NotFound
  nil
end