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.
33 34 35 36 37 |
# File 'lib/dnsimple/client/domains_dnssec.rb', line 33 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.
16 17 18 19 20 |
# File 'lib/dnsimple/client/domains_dnssec.rb', line 16 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.
50 51 52 53 54 |
# File 'lib/dnsimple/client/domains_dnssec.rb', line 50 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 |