Class: Lumberg::Cpanel::DomainKeys
- Defined in:
- lib/lumberg/cpanel/domain_keys.rb
Overview
Public: Allows users to edit domain keys
Instance Attribute Summary
Attributes inherited from Base
Attributes inherited from Whm::Base
Class Method Summary collapse
Instance Method Summary collapse
-
#add ⇒ Object
Public: Install DomainKeys for your cPanel account.
-
#available ⇒ Object
Public: Check to see if DomainKeys are available on the server.
-
#installed ⇒ Object
Public: Check to see if your domain has DomainKeys installed.
-
#remove ⇒ Object
Public: Remove DomainKeys corresponding to your domain.
Methods inherited from Base
Methods inherited from Whm::Base
Constructor Details
This class inherits a constructor from Lumberg::Cpanel::Base
Class Method Details
.api_module ⇒ Object
5 |
# File 'lib/lumberg/cpanel/domain_keys.rb', line 5 def self.api_module ; "DKIMUI" ; end |
Instance Method Details
#add ⇒ Object
Public: Install DomainKeys for your cPanel account
Returns Hash API response
10 11 12 |
# File 'lib/lumberg/cpanel/domain_keys.rb', line 10 def add perform_request({ api_function: "install" }) end |
#available ⇒ Object
Public: Check to see if DomainKeys are available on the server
Returns Hash API response
31 32 33 |
# File 'lib/lumberg/cpanel/domain_keys.rb', line 31 def available perform_request({ api_function: "available" }) end |
#installed ⇒ Object
Public: Check to see if your domain has DomainKeys installed
Returns Hash API response
24 25 26 |
# File 'lib/lumberg/cpanel/domain_keys.rb', line 24 def installed perform_request({ api_function: "installed" }) end |
#remove ⇒ Object
Public: Remove DomainKeys corresponding to your domain
Returns Hash API response
17 18 19 |
# File 'lib/lumberg/cpanel/domain_keys.rb', line 17 def remove perform_request({ api_function: "uninstall" }) end |