Module: Dnsimple::Client::RegistrarWhoisPrivacy
- Included in:
- RegistrarService
- Defined in:
- lib/dnsimple/client/registrar_whois_privacy.rb
Instance Method Summary collapse
-
#disable_whois_privacy(account_id, domain_name, options = {}) ⇒ Struct::WhoisPrivacy
Disables whois privacy for the domain.
-
#enable_whois_privacy(account_id, domain_name, options = {}) ⇒ Struct::WhoisPrivacy
Enables whois privacy for the domain.
-
#whois_privacy(account_id, domain_name, options = {}) ⇒ Struct::WhoisPrivacy
Gets the whois privacy for the domain.
Instance Method Details
#disable_whois_privacy(account_id, domain_name, options = {}) ⇒ Struct::WhoisPrivacy
Disables whois privacy for the domain.
58 59 60 61 62 63 |
# File 'lib/dnsimple/client/registrar_whois_privacy.rb', line 58 def disable_whois_privacy(account_id, domain_name, = {}) endpoint = whois_privacy_endpoint(account_id, domain_name) response = client.delete(endpoint, nil, ) Dnsimple::Response.new(response, Struct::WhoisPrivacy.new(response["data"])) end |
#enable_whois_privacy(account_id, domain_name, options = {}) ⇒ Struct::WhoisPrivacy
Enables whois privacy for the domain.
38 39 40 41 42 43 |
# File 'lib/dnsimple/client/registrar_whois_privacy.rb', line 38 def enable_whois_privacy(account_id, domain_name, = {}) endpoint = whois_privacy_endpoint(account_id, domain_name) response = client.put(endpoint, nil, ) Dnsimple::Response.new(response, Struct::WhoisPrivacy.new(response["data"])) end |
#whois_privacy(account_id, domain_name, options = {}) ⇒ Struct::WhoisPrivacy
Gets the whois privacy for the domain.
18 19 20 21 22 23 |
# File 'lib/dnsimple/client/registrar_whois_privacy.rb', line 18 def whois_privacy(account_id, domain_name, = {}) endpoint = whois_privacy_endpoint(account_id, domain_name) response = client.get(endpoint, ) Dnsimple::Response.new(response, Struct::WhoisPrivacy.new(response["data"])) end |