Class: Namecheap::Whois_Guard

Inherits:
Api
  • Object
show all
Defined in:
lib/namecheap/whois_guard.rb

Overview

standard:disable Naming/ClassAndModuleCamelCase

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.



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

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.



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

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.



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

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

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

Discards the WhoisGuard.



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

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.



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

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.



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

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