lib/dnsmadeeasy_verify.rb in dnsmadeeasy_verify-0.0.3 vs lib/dnsmadeeasy_verify.rb in dnsmadeeasy_verify-0.0.4
- old
+ new
@@ -14,19 +14,18 @@
case response.status
when 200
data = JSON.parse(response.body)
data['data'].each do |child|
- domains[child["name"]] = Domain.new(child["name"])
+ domains[child["name"]] = Domain.new(child["id"],child["name"])
end
-
end
domains
end
# Returns all domains that are not correctly setup on DNS Made Easy
- def self.domains_not_on_dnsmadeeasy()
+ def self.domains_not_on_dnsmadeeasy
domains = self.list_domains
domains_not_on_dnsmadeeasy = Hash.new
domains.each do |k, v|
domains_not_on_dnsmadeeasy[k] = v unless v.do_name_servers_contain("dnsmadeeasy.com")
end