Sha256: 155a07829258116b95e8ee062fcf454a830a8b758af6d8a4d5d657f9fb9c0da8
Contents?: true
Size: 1021 Bytes
Versions: 3
Compression:
Stored size: 1021 Bytes
Contents
module Dnsimple class Client module DomainsPrivacy # Enables WHOIS privacy for a domain. # # @see http://developer.dnsimple.com/domains/privacy/#enable # # @param [#to_s] domain The domain id or domain name. # # @return [Struct::WhoisPrivacy] # @raise [RequestError] When the request fails. def enable_whois_privacy(domain) response = client.post("v1/domains/#{domain}/whois_privacy") Struct::WhoisPrivacy.new(response["whois_privacy"]) end # Disables WHOIS privacy for a domain. # # @see http://developer.dnsimple.com/domains/privacy/#disable # # @param [#to_s] domain The domain id or domain name. # # @return [Struct::WhoisPrivacy] # @raise [RequestError] When the request fails. def disable_whois_privacy(domain) response = client.delete("v1/domains/#{domain}/whois_privacy") Struct::WhoisPrivacy.new(response["whois_privacy"]) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dnsimple-2.0.0 | lib/dnsimple/client/domains_privacy.rb |
dnsimple-2.0.0.alpha5 | lib/dnsimple/client/domains_privacy.rb |
dnsimple-2.0.0.alpha4 | lib/dnsimple/client/domains_privacy.rb |