Module: Dnsimple::Client::VanityNameServers
- Included in:
- VanityNameServersService
- Defined in:
- lib/dnsimple/client/vanity_name_servers.rb
Instance Method Summary collapse
-
#disable_vanity_name_servers(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<nil>
Disable vanity name servers for the domain.
-
#enable_vanity_name_servers(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<Array>
Enable vanity name servers for the domain.
Instance Method Details
#disable_vanity_name_servers(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<nil>
Disable vanity name servers for the domain.
40 41 42 43 44 45 |
# File 'lib/dnsimple/client/vanity_name_servers.rb', line 40 def disable_vanity_name_servers(account_id, domain_name, = {}) endpoint = Client.versioned("/%s/vanity/%s" % [account_id, domain_name]) response = client.delete(endpoint, ) Dnsimple::Response.new(response, response["data"]) end |
#enable_vanity_name_servers(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<Array>
Enable vanity name servers for the domain.
20 21 22 23 24 25 |
# File 'lib/dnsimple/client/vanity_name_servers.rb', line 20 def enable_vanity_name_servers(account_id, domain_name, = {}) endpoint = Client.versioned("/%s/vanity/%s" % [account_id, domain_name]) response = client.put(endpoint, ) Dnsimple::Response.new(response, response["data"]) end |