lib/loopiator/domains.rb in loopiator-0.4.1 vs lib/loopiator/domains.rb in loopiator-0.4.2

- old
+ new

@@ -55,9 +55,15 @@ response = parse_status_response(call("removeDomain", customer_number, encode_domain(domain), deactivate)) return response.eql?(:ok) end + def remove_subdomain(domain, subdomain, customer_number: "") + response = parse_status_response(call("removeSubdomain", customer_number, encode_domain(domain), subdomain)) + + return response.eql?(:ok) + end + def update_nameservers(domain, nameservers = ["ns1.loopia.se", "ns2.loopia.se"], customer_number: "") response = parse_status_response(call("updateDNSServers", customer_number, encode_domain(domain), nameservers)) return response.eql?(:ok) end