Class: Namecheap::Domains
- Inherits:
-
Api
- Object
- Api
- Namecheap::Domains
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, #init_args
Instance Method Details
#check(domains = [], options = {}) ⇒ Object
31
32
33
34
35
|
# File 'lib/namecheap/domains.rb', line 31
def check(domains = [], options = {})
args = options.clone
args['DomainList'] = domains.respond_to?(:join) ? domains.join(',') : domains
api_call('namecheap.domains.check', args)
end
|
#create(domain, options = {}) ⇒ Object
14
15
16
17
18
|
# File 'lib/namecheap/domains.rb', line 14
def create(domain, options = {})
args = options.clone
args['DomainName'] = domain
api_call('namecheap.domains.create', args)
end
|
8
9
10
11
12
|
# File 'lib/namecheap/domains.rb', line 8
def get_contacts(domain, options = {})
args = options.clone
args['DomainName'] = domain
api_call('namecheap.domains.getContacts', args)
end
|
#get_info(domain, options = {}) ⇒ Object
61
62
63
64
65
|
# File 'lib/namecheap/domains.rb', line 61
def get_info(domain, options = {})
args = options.clone
args['DomainName'] = domain
api_call('namecheap.domains.getInfo', 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
|
#get_registrar_lock(domain, options = {}) ⇒ Object
49
50
51
52
53
|
# File 'lib/namecheap/domains.rb', line 49
def get_registrar_lock(domain, options = {})
args = options.clone
args['DomainName'] = domain
api_call('namecheap.domains.getRegistrarLock', args)
end
|
#get_tld_list(options = {}) ⇒ Object
20
21
22
23
|
# File 'lib/namecheap/domains.rb', line 20
def get_tld_list(options = {})
args = options.clone
api_call('namecheap.domains.getTldList', args)
end
|
#reactivate(domain, options = {}) ⇒ Object
37
38
39
40
41
|
# File 'lib/namecheap/domains.rb', line 37
def reactivate(domain, options = {})
args = options.clone
args['DomainName'] = domain
api_call('namecheap.domains.reactivate', args)
end
|
#renew(domain, options = {}) ⇒ Object
43
44
45
46
47
|
# File 'lib/namecheap/domains.rb', line 43
def renew(domain, options = {})
args = options.clone
args['DomainName'] = domain
api_call('namecheap.domains.renew', args)
end
|
25
26
27
28
29
|
# File 'lib/namecheap/domains.rb', line 25
def set_contacts(domain, options = {})
args = options.clone
args['DomainName'] = domain
api_call('namecheap.domains.setContacts', args)
end
|
#set_registrar_lock(domain, options = {}) ⇒ Object
55
56
57
58
59
|
# File 'lib/namecheap/domains.rb', line 55
def set_registrar_lock(domain, options = {})
args = options.clone
args['DomainName'] = domain
api_call('namecheap.domains.setRegistrarLock', args)
end
|