Module: Dnsimple::Client::DomainsDnssec
- Included in:
- DomainsService
- Defined in:
- lib/dnsimple/client/domains_dnssec.rb
Instance Method Summary collapse
-
#disable_dnssec(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<nil>
Disable DNSSEC for the domain in the account.
-
#enable_dnssec(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<Dnsimple::Struct::Dnssec>
Enable DNSSEC for the domain in the account.
-
#get_dnssec(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<Dnsimple::Struct::Dnssec>
Get the DNSSEC status for the domain in the account.
Instance Method Details
#disable_dnssec(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<nil>
Disable DNSSEC for the domain in the account.
35 36 37 38 39 |
# File 'lib/dnsimple/client/domains_dnssec.rb', line 35 def disable_dnssec(account_id, domain_name, = {}) response = client.delete(Client.versioned("/%s/domains/%s/dnssec" % [account_id, domain_name]), nil, ) Dnsimple::Response.new(response, nil) end |
#enable_dnssec(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<Dnsimple::Struct::Dnssec>
Enable DNSSEC for the domain in the account.
18 19 20 21 22 |
# File 'lib/dnsimple/client/domains_dnssec.rb', line 18 def enable_dnssec(account_id, domain_name, = {}) response = client.post(Client.versioned("/%s/domains/%s/dnssec" % [account_id, domain_name]), nil, ) Dnsimple::Response.new(response, Struct::Dnssec.new(response["data"])) end |
#get_dnssec(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<Dnsimple::Struct::Dnssec>
Get the DNSSEC status for the domain in the account.
52 53 54 55 56 |
# File 'lib/dnsimple/client/domains_dnssec.rb', line 52 def get_dnssec(account_id, domain_name, = {}) response = client.get(Client.versioned("/%s/domains/%s/dnssec" % [account_id, domain_name]), ) Dnsimple::Response.new(response, Struct::Dnssec.new(response["data"])) end |