Module: WHMCS
- Defined in:
- lib/whmcs/version.rb,
lib/whmcs.rb,
lib/whmcs/base.rb,
lib/whmcs/misc.rb,
lib/whmcs/order.rb,
lib/whmcs/quote.rb,
lib/whmcs/client.rb,
lib/whmcs/config.rb,
lib/whmcs/module.rb,
lib/whmcs/ticket.rb,
lib/whmcs/invoice.rb
Overview
:nodoc:
Defined Under Namespace
Classes: Base, Client, Config, Invoice, Misc, Module, Order, Quote, Ticket
Constant Summary collapse
- VERSION =
Version = '0.0.1'
Class Attribute Summary collapse
-
.config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
-
.configure {|config| ... } ⇒ Object
Pass a block to configure the WHMCS API.
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
14 15 16 |
# File 'lib/whmcs.rb', line 14 def config @config end |
Class Method Details
.configure {|config| ... } ⇒ Object
Pass a block to configure the WHMCS API
WHMCS.configure do |config|
config.api_username = 'apiuser'
config.api_password = 'c4ca4238a0b923820dcc509a6f75849b'
config.api_url = 'http://example.com/includes/api.php
end
26 27 28 29 |
# File 'lib/whmcs.rb', line 26 def self.configure yield config config end |