Class: Namecheap::Whois_Guard
- Inherits:
-
Api
- Object
- Api
- Namecheap::Whois_Guard
show all
- Defined in:
- lib/namecheap/whois_guard.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
#allot(id, domain, options = {}) ⇒ Object
3
4
5
6
7
8
|
# File 'lib/namecheap/whois_guard.rb', line 3
def allot(id, domain, options = {})
args = options.clone
args['WhoisguardId'] = id
args['DomainName'] = domain
api_call('namecheap.whoisguard.allot', args)
end
|
#change_email_address(id, options = {}) ⇒ Object
34
35
36
37
38
|
# File 'lib/namecheap/whois_guard.rb', line 34
def change_email_address(id, options = {})
args = options.clone
args['WhoisguardId'] = id
api_call('namecheap.whoisguard.changeemailaddress', args)
end
|
#disable(id, options = {}) ⇒ Object
22
23
24
25
26
|
# File 'lib/namecheap/whois_guard.rb', line 22
def disable(id, options = {})
args = options.clone
args['WhoisguardId'] = id
api_call('namecheap.whoisguard.disable', args)
end
|
#discard(id, options = {}) ⇒ Object
10
11
12
13
14
|
# File 'lib/namecheap/whois_guard.rb', line 10
def discard(id, options = {})
args = options.clone
args['WhoisguardId'] = id
api_call('namecheap.whoisguard.discard', args)
end
|
#enable(id, options = {}) ⇒ Object
28
29
30
31
32
|
# File 'lib/namecheap/whois_guard.rb', line 28
def enable(id, options = {})
args = options.clone
args['WhoisguardId'] = id
api_call('namecheap.whoisguard.enable', args)
end
|
#unallot(id, options = {}) ⇒ Object
16
17
18
19
20
|
# File 'lib/namecheap/whois_guard.rb', line 16
def unallot(id, options = {})
args = options.clone
args['WhoisguardId'] = id
api_call('namecheap.whoisguard.unallot', args)
end
|