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_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
14 15 16 17 18 |
# File 'lib/whmcs/config.rb', line 14 def initialize @api_username = 'example_api_user' @api_password = 'example_api_pass' @api_url = 'http://example.com/api.php' end |
Instance Attribute Details
#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 |