Method: Dnsimple::Client::Registrar#renew_domain
- Defined in:
- lib/dnsimple/client/registrar.rb
#renew_domain(account_id, domain_name, attributes = nil, options = {}) ⇒ Struct::DomainRenewal
Renews a domain.
88 89 90 91 92 93 |
# File 'lib/dnsimple/client/registrar.rb', line 88 def renew_domain(account_id, domain_name, attributes = nil, = {}) endpoint = Client.versioned("/%s/registrar/domains/%s/renewal" % [account_id, domain_name]) response = client.post(endpoint, attributes, ) Dnsimple::Response.new(response, Struct::DomainRenewal.new(response["data"])) end |