Class: Namecheap::Whois_Guard
Overview
standard:disable Naming/ClassAndModuleCamelCase
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.
6 7 8 9 |
# File 'lib/namecheap/whois_guard.rb', line 6 def allot(id, domain, = {}) = {WhoisguardId: id, DomainName: domain}.merge() get "whoisguard.allot", 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, = {}) = {WhoisguardId: id}.merge() get "whoisguard.changeemailaddress", 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, = {}) = {WhoisguardId: id}.merge() get "whoisguard.disable", end |
#discard(id, options = {}) ⇒ Object
Discards the WhoisGuard.
13 14 15 16 |
# File 'lib/namecheap/whois_guard.rb', line 13 def discard(id, = {}) = {WhoisguardId: id}.merge() get "whoisguard.discard", 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, = {}) = {WhoisguardId: id}.merge() get "whoisguard.enable", 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, = {}) = {WhoisguardId: id}.merge() get "whoisguard.unallot", end |