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



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_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