Class: Namecheap::Transfers

Inherits:
Api
  • Object
show all
Defined in:
lib/namecheap/transfers.rb

Constant Summary

Constants inherited from Api

Api::ENDPOINT, Api::ENVIRONMENT, Api::PRODUCTION, Api::SANDBOX

Instance Method Summary collapse

Methods inherited from Api

#delete, #get, #init_args, #post, #put, #request

Instance Method Details

#create(domain, options = {}) ⇒ Object

Transfers a domain to Namecheap.



5
6
7
8
# File 'lib/namecheap/transfers.rb', line 5

def create(domain, options = {})
  options = {:DomainName => domain}.merge(options)
  get 'domains.transfer.create', options
end

#get_list(options = {}) ⇒ Object

Gets the list of domain transfers.



26
27
28
# File 'lib/namecheap/transfers.rb', line 26

def get_list(options = {})
  get 'domains.transfer.getList', options
end

#get_status(id, options = {}) ⇒ Object

Gets the status of a particular transfer.



12
13
14
15
# File 'lib/namecheap/transfers.rb', line 12

def get_status(id, options = {})
  options = {:TransferID => id}.merge(options)
  get 'domains.transfer.getStatus', options
end

#update_status(id, options = {}) ⇒ Object

Updates the status of a particular transfer.



19
20
21
22
# File 'lib/namecheap/transfers.rb', line 19

def update_status(id, options = {})
  options = {:TransferID => id}.merge(options)
  get 'domains.transfer.updateStatus', options
end