Module: Whmcs
- Defined in:
- 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,
lib/generators/whmcs/install_generator.rb
Defined Under Namespace
Modules: Generators Classes: Base, Client, Config, Invoice, Misc, Module, Order, Quote, Ticket
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.
13 14 15 |
# File 'lib/whmcs.rb', line 13 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
25 26 27 28 |
# File 'lib/whmcs.rb', line 25 def self.configure yield config config end |