Class: WHMCS::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/whmcs/config.rb

Overview

WHMCS::Config stores configuration data for connecting to the WHMCS API

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_keyObject

The WHMCS API Access Key



14
15
16
# File 'lib/whmcs/config.rb', line 14

def api_key
  @api_key
end

#api_passwordObject

The WHMCS API password



8
9
10
# File 'lib/whmcs/config.rb', line 8

def api_password
  @api_password
end

#api_urlObject

The WHMCS API URL



11
12
13
# File 'lib/whmcs/config.rb', line 11

def api_url
  @api_url
end

#api_usernameObject

The WHMCS API username



5
6
7
# File 'lib/whmcs/config.rb', line 5

def api_username
  @api_username
end