Module: Dnsimple::Client::RegistrarTransferLock
- Included in:
- RegistrarService
- Defined in:
- lib/dnsimple/client/registrar_transfer_lock.rb
Instance Method Summary collapse
-
#disable_domain_transfer_lock(account_id, domain_name, options = {}) ⇒ Struct::TransferLock
Disable trasnfer lock for the domain in the account.
-
#enable_domain_transfer_lock(account_id, domain_name, options = {}) ⇒ Struct::TransferLock
Enable transfer lock for the domain in the account.
-
#get_domain_transfer_lock(account_id, domain_name, options = {}) ⇒ Struct::TransferLock
Gets the transfer lock for the domain.
Instance Method Details
#disable_domain_transfer_lock(account_id, domain_name, options = {}) ⇒ Struct::TransferLock
Disable trasnfer lock for the domain in the account.
53 54 55 56 57 |
# File 'lib/dnsimple/client/registrar_transfer_lock.rb', line 53 def disable_domain_transfer_lock(account_id, domain_name, = {}) response = client.delete(Client.versioned("/%s/registrar/domains/%s/transfer_lock" % [account_id, domain_name]), nil, ) Dnsimple::Response.new(response, Struct::TransferLock.new(response["data"])) end |
#enable_domain_transfer_lock(account_id, domain_name, options = {}) ⇒ Struct::TransferLock
Enable transfer lock for the domain in the account.
36 37 38 39 40 |
# File 'lib/dnsimple/client/registrar_transfer_lock.rb', line 36 def enable_domain_transfer_lock(account_id, domain_name, = {}) response = client.post(Client.versioned("/%s/registrar/domains/%s/transfer_lock" % [account_id, domain_name]), nil, ) Dnsimple::Response.new(response, Struct::TransferLock.new(response["data"])) end |
#get_domain_transfer_lock(account_id, domain_name, options = {}) ⇒ Struct::TransferLock
Gets the transfer lock for the domain.
19 20 21 22 23 |
# File 'lib/dnsimple/client/registrar_transfer_lock.rb', line 19 def get_domain_transfer_lock(account_id, domain_name, = {}) response = client.get(Client.versioned("/%s/registrar/domains/%s/transfer_lock" % [account_id, domain_name]), ) Dnsimple::Response.new(response, Struct::TransferLock.new(response["data"])) end |