Module: Dnsimple::Client::RegistrarAutoRenewal

Included in:
RegistrarService
Defined in:
lib/dnsimple/client/registrar_auto_renewal.rb

Instance Method Summary collapse

Instance Method Details

#disable_auto_renewal(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<nil>

Disable auto renewal for the domain in the account.

Parameters:

  • account_id (Integer)

    the account ID

  • domain_name (#to_s)

    the domain name

  • options (Hash) (defaults to: {})

Returns:

Raises:

See Also:


35
36
37
38
39
# File 'lib/dnsimple/client/registrar_auto_renewal.rb', line 35

def disable_auto_renewal(, domain_name, options = {})
  response = client.delete(Client.versioned("/%s/registrar/domains/%s/auto_renewal" % [, domain_name]), nil, options)

  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.

Parameters:

  • account_id (Integer)

    the account ID

  • domain_name (#to_s)

    the domain name

  • options (Hash) (defaults to: {})

Returns:

Raises:

See Also:


18
19
20
21
22
# File 'lib/dnsimple/client/registrar_auto_renewal.rb', line 18

def enable_auto_renewal(, domain_name, options = {})
  response = client.put(Client.versioned("/%s/registrar/domains/%s/auto_renewal" % [, domain_name]), nil, options)

  Dnsimple::Response.new(response, nil)
end