Module: Dnsimple::Client::RegistrarAutoRenewal
- Included in:
- RegistrarService
- Defined in:
- lib/dnsimple/client/registrar_auto_renewal.rb
Instance Method Summary collapse
-
#disable_auto_renewal(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<nil>
Disable auto renewal for the domain in the account.
-
#enable_auto_renewal(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<nil>
Enable auto renewal for the domain in the account.
Instance Method Details
#disable_auto_renewal(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<nil>
Disable auto renewal for the domain in the account.
35 36 37 38 39 |
# File 'lib/dnsimple/client/registrar_auto_renewal.rb', line 35 def disable_auto_renewal(account_id, domain_name, = {}) response = client.delete(Client.versioned("/%s/registrar/domains/%s/auto_renewal" % [account_id, domain_name]), nil, ) Dnsimple::Response.new(response, nil) end |
#enable_auto_renewal(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<nil>
Enable auto renewal for the domain in the account.
18 19 20 21 22 |
# File 'lib/dnsimple/client/registrar_auto_renewal.rb', line 18 def enable_auto_renewal(account_id, domain_name, = {}) response = client.put(Client.versioned("/%s/registrar/domains/%s/auto_renewal" % [account_id, domain_name]), nil, ) Dnsimple::Response.new(response, nil) end |