Class: Lumberg::Cpanel::Support
- Defined in:
- lib/lumberg/cpanel/support.rb
Instance Attribute Summary
Attributes inherited from Base
Attributes inherited from Whm::Base
Class Method Summary collapse
Instance Method Summary collapse
-
#contactable ⇒ Object
Public: Check if you can open a support ticket, or if you are able to contact your hosting provider through Cpanel.
-
#open_ticket(options = {}) ⇒ Object
Public: Send a support request.
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
4 |
# File 'lib/lumberg/cpanel/support.rb', line 4 def self.api_module; "Contactus"; end |
Instance Method Details
#contactable ⇒ Object
Public: Check if you can open a support ticket, or if you are able to contact your hosting provider through Cpanel
Returns Hash API response
24 25 26 |
# File 'lib/lumberg/cpanel/support.rb', line 24 def contactable perform_request({ api_function: "isenabled" }) end |
#open_ticket(options = {}) ⇒ Object
Public: Send a support request.
options - Hash options for API call params (default: {}):
:email - String destination email address.
:issue - String brief explantation of issue (body text).
:subject - String subject line.
Returns Hash API response.
14 15 16 17 18 |
# File 'lib/lumberg/cpanel/support.rb', line 14 def open_ticket( = {}) perform_request({ api_function: "sendcontact" }.merge()) end |