Module: Dnsimple::Client::RegistrarDelegation
- Included in:
- RegistrarService
- Defined in:
- lib/dnsimple/client/registrar_delegation.rb
Instance Method Summary collapse
-
#change_domain_delegation(account_id, domain_name, attributes, options = {}) ⇒ Dnsimple::Response<Array>
Chagne name servers the domain is delegating to.
-
#domain_delegation(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<Array>
Lists name servers the domain is delegating to.
Instance Method Details
#change_domain_delegation(account_id, domain_name, attributes, options = {}) ⇒ Dnsimple::Response<Array>
Chagne name servers the domain is delegating to.
40 41 42 43 44 45 |
# File 'lib/dnsimple/client/registrar_delegation.rb', line 40 def change_domain_delegation(account_id, domain_name, attributes, = {}) endpoint = Client.versioned("/%s/registrar/domains/%s/delegation" % [account_id, domain_name]) response = client.put(endpoint, attributes, ) Dnsimple::Response.new(response, response["data"]) end |
#domain_delegation(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<Array>
Lists name servers the domain is delegating to.
18 19 20 21 22 23 |
# File 'lib/dnsimple/client/registrar_delegation.rb', line 18 def domain_delegation(account_id, domain_name, = {}) endpoint = Client.versioned("/%s/registrar/domains/%s/delegation" % [account_id, domain_name]) response = client.get(endpoint, ) Dnsimple::Response.new(response, response["data"]) end |