Class: WHMCS::Config
- Inherits:
-
Object
- Object
- WHMCS::Config
- Defined in:
- lib/whmcs/config.rb
Overview
WHMCS::Config stores configuration data for connecting to the WHMCS API
Instance Attribute Summary collapse
-
#api_key ⇒ Object
The WHMCS API Access Key.
-
#api_password ⇒ Object
The WHMCS API password.
-
#api_url ⇒ Object
The WHMCS API URL.
-
#api_username ⇒ Object
The WHMCS API username.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
Create a new config object.
Constructor Details
#initialize ⇒ Config
Create a new config object
17 18 19 20 21 22 |
# File 'lib/whmcs/config.rb', line 17 def initialize @api_username = 'Admin' @api_password = 'demo-in-md5' @api_url = 'http://demo.whmcs.com/includes/api.php' @api_key = 'whmcsdemo' end |
Instance Attribute Details
#api_key ⇒ Object
The WHMCS API Access Key
14 15 16 |
# File 'lib/whmcs/config.rb', line 14 def api_key @api_key end |
#api_password ⇒ Object
The WHMCS API password
8 9 10 |
# File 'lib/whmcs/config.rb', line 8 def api_password @api_password end |
#api_url ⇒ Object
The WHMCS API URL
11 12 13 |
# File 'lib/whmcs/config.rb', line 11 def api_url @api_url end |
#api_username ⇒ Object
The WHMCS API username
5 6 7 |
# File 'lib/whmcs/config.rb', line 5 def api_username @api_username end |