Class: Namecheap::Whois_Guard

Inherits:
Api
  • Object
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

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

Instance Method Details

#allot(id, domain, options = {}) ⇒ Object

Allots WhoisGuard privacy protection.



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

def allot(id, domain, options = {})
  options = {:WhoisguardId => id, :DomainName => domain}.merge(options)
  get 'whoisguard.allot', options
end

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

Changes WhoisGuard email address.



40
41
42
43
# File 'lib/namecheap/whois_guard.rb', line 40

def change_email_address(id, options = {})
  options = {:WhoisguardId => id}.merge(options)
  get 'whoisguard.changeemailaddress', options
end

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

Disables WhoisGuard privacy protection for the WhoisguardID.



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

def disable(id, options = {})
  options = {:WhoisguardId => id}.merge(options)
  get 'whoisguard.disable', options
end

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

Discards the WhoisGuard.



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

def discard(id, options = {})
  options = {:WhoisguardId => id}.merge(options)
  get 'whoisguard.discard', options
end

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

Enables WhoisGuard privacy protection for the WhoisguardID.



33
34
35
36
# File 'lib/namecheap/whois_guard.rb', line 33

def enable(id, options = {})
  options = {:WhoisguardId => id}.merge(options)
  get 'whoisguard.enable', options
end

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

Unallots WhoisGuard privacy protection for the WhoisguardID.



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

def unallot(id, options = {})
  options = {:WhoisguardId => id}.merge(options)
  get 'whoisguard.unallot', options
end