Module: Dnsimple::Client::TemplatesDomains

Included in:
TemplatesService
Defined in:
lib/dnsimple/client/templates_domains.rb

Instance Method Summary collapse

Instance Method Details

#apply_template(domain, template, options = {}) ⇒ void Also known as: apply

This method returns an undefined value.

Applies the template to the domain.

Parameters:

  • domain (#to_s)

    The domain id or domain name.

  • template (#to_s)

    The template id or short-name.

Raises:

See Also:



15
16
17
18
# File 'lib/dnsimple/client/templates_domains.rb', line 15

def apply_template(domain, template, options = {})
  response = client.post(Client.versioned("/domains/#{domain}/templates/#{template}/apply"), options)
  response.code == 200
end