Class: Namecheap::Domains

Inherits:
Api
  • Object
show all
Defined in:
lib/namecheap/domains.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

Instance Method Details

#check(domains = [], options = {}) ⇒ Object



8
9
10
11
12
# File 'lib/namecheap/domains.rb', line 8

def check(domains = [], options = {})
  args = options.clone
  args['DomainList'] = domains.respond_to?(:join) ? domains.join(',') : domains
  api_call('namecheap.domains.check', args)
end

#get_list(options = {}) ⇒ Object



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

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