Class: Namecheap::Whois_Guard
Constant Summary
Constants inherited from Api
Api::ENDPOINT, Api::ENVIRONMENT, Api::PRODUCTION, Api::SANDBOX
Instance Method Summary collapse
-
#allot(id, domain, options = {}) ⇒ Object
Allots WhoisGuard privacy protection.
-
#change_email_address(id, options = {}) ⇒ Object
Changes WhoisGuard email address.
-
#disable(id, options = {}) ⇒ Object
Disables WhoisGuard privacy protection for the WhoisguardID.
-
#discard(id, options = {}) ⇒ Object
Discards the WhoisGuard.
-
#enable(id, options = {}) ⇒ Object
Enables WhoisGuard privacy protection for the WhoisguardID.
-
#unallot(id, options = {}) ⇒ Object
Unallots WhoisGuard privacy protection for the WhoisguardID.
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, = {}) = {:WhoisguardId => id, :DomainName => domain}.merge() get 'whoisguard.allot', 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, = {}) = {:WhoisguardId => id}.merge() get 'whoisguard.changeemailaddress', 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, = {}) = {:WhoisguardId => id}.merge() get 'whoisguard.disable', end |
#discard(id, options = {}) ⇒ Object
Discards the WhoisGuard.
12 13 14 15 |
# File 'lib/namecheap/whois_guard.rb', line 12 def discard(id, = {}) = {:WhoisguardId => id}.merge() get 'whoisguard.discard', 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, = {}) = {:WhoisguardId => id}.merge() get 'whoisguard.enable', 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, = {}) = {:WhoisguardId => id}.merge() get 'whoisguard.unallot', end |