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

#api_call, #init_args

Instance Method Details

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



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

def create(domain, options = {})
  args = options.clone
  args['DomainName'] = domain
  api_call('namecheap.domains.transfer.create', args)
end

#get_list(options = {}) ⇒ Object



21
22
23
24
# File 'lib/namecheap/transfers.rb', line 21

def get_list(options = {})
  args = options.clone
  api_call('namecheap.domains.transfer.getList', args)
end

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



9
10
11
12
13
# File 'lib/namecheap/transfers.rb', line 9

def get_status(id, options = {})
  args = options.clone
  args['TransferID'] = id
  api_call('namecheap.domains.transfer.getStatus', args)
end

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



15
16
17
18
19
# File 'lib/namecheap/transfers.rb', line 15

def update_status(id, options = {})
  args = options.clone
  args['TransferID'] = id
  api_call('namecheap.domains.transfer.updateStatus', args)
end