Class: WHMCS::Module
Overview
WHMCS::Module is the class for working with hosting account modules
Class Method Summary collapse
-
.module_change_package(params = {}) ⇒ Object
Module Change Package.
-
.module_change_password(params = {}) ⇒ Object
Module Change Password.
- .module_create(params = {}) ⇒ Object
- .module_suspend(params = {}) ⇒ Object
- .module_terminate(params = {}) ⇒ Object
- .module_unsuspend(params = {}) ⇒ Object
Methods inherited from Base
Class Method Details
.module_change_package(params = {}) ⇒ Object
Module Change Package
This command is used to run the change package module command
Parameters:
*:serviceid - ID of the service in WHMCS to run the module command
See:
75 76 77 78 |
# File 'lib/whmcs/module.rb', line 75 def self.module_change_package(params = {}) params.merge!(:action => 'modulechangepackage') send_request(params) end |
.module_change_password(params = {}) ⇒ Object
Module Change Password
This command is used to issue the change password command to the module for a service.
Params:
-
:serviceid- the unique id of the service to perform the action on (aka tblhosting.id)
Optional attributes:
-
:servicepassword- Specify to update the password on the service before calling
See:
94 95 96 97 |
# File 'lib/whmcs/module.rb', line 94 def self.module_change_password(params = {}) params.merge!(:action => 'modulechangepw') send_request(params) end |
.module_create(params = {}) ⇒ Object
14 15 16 17 |
# File 'lib/whmcs/module.rb', line 14 def self.module_create(params = {}) params.merge!(:action => 'modulecreate') send_request(params) end |
.module_suspend(params = {}) ⇒ Object
31 32 33 34 |
# File 'lib/whmcs/module.rb', line 31 def self.module_suspend(params = {}) params.merge!(:action => 'modulesuspend') send_request(params) end |
.module_terminate(params = {}) ⇒ Object
59 60 61 62 |
# File 'lib/whmcs/module.rb', line 59 def self.module_terminate(params = {}) params.merge!(:action => 'moduleterminate') send_request(params) end |
.module_unsuspend(params = {}) ⇒ Object
45 46 47 48 |
# File 'lib/whmcs/module.rb', line 45 def self.module_unsuspend(params = {}) params.merge!(:action => 'moduleunsuspend') send_request(params) end |