Class: Raas::RaasClient
- Inherits:
-
Object
- Object
- Raas::RaasClient
- Defined in:
- lib/raas/raas_client.rb
Instance Method Summary collapse
-
#accounts ⇒ AccountsController
Singleton access to accounts controller.
-
#catalog ⇒ CatalogController
Singleton access to catalog controller.
-
#config ⇒ Configuration
Returns the configuration class for easy access.
-
#customers ⇒ CustomersController
Singleton access to customers controller.
-
#exchange_rates ⇒ ExchangeRatesController
Singleton access to exchange_rates controller.
-
#initialize(platform_name: 'QAPlatform2', platform_key: 'apYPfT6HNONpDRUj3CLGWYt7gvIHONpDRUYPfT6Hj') ⇒ RaasClient
constructor
Initializer with authentication and configuration parameters.
-
#orders ⇒ OrdersController
Singleton access to orders controller.
-
#status ⇒ StatusController
Singleton access to status controller.
Constructor Details
#initialize(platform_name: 'QAPlatform2', platform_key: 'apYPfT6HNONpDRUj3CLGWYt7gvIHONpDRUYPfT6Hj') ⇒ RaasClient
Initializer with authentication and configuration parameters
48 49 50 51 |
# File 'lib/raas/raas_client.rb', line 48 def initialize(platform_name: 'QAPlatform2', platform_key: 'apYPfT6HNONpDRUj3CLGWYt7gvIHONpDRUYPfT6Hj') Configuration.platform_name = platform_name if platform_name Configuration.platform_key = platform_key if platform_key end |
Instance Method Details
#accounts ⇒ AccountsController
Singleton access to accounts controller
7 8 9 |
# File 'lib/raas/raas_client.rb', line 7 def accounts AccountsController.instance end |
#catalog ⇒ CatalogController
Singleton access to catalog controller
19 20 21 |
# File 'lib/raas/raas_client.rb', line 19 def catalog CatalogController.instance end |
#config ⇒ Configuration
Returns the configuration class for easy access
43 44 45 |
# File 'lib/raas/raas_client.rb', line 43 def config Configuration end |
#customers ⇒ CustomersController
Singleton access to customers controller
37 38 39 |
# File 'lib/raas/raas_client.rb', line 37 def customers CustomersController.instance end |
#exchange_rates ⇒ ExchangeRatesController
Singleton access to exchange_rates controller
25 26 27 |
# File 'lib/raas/raas_client.rb', line 25 def exchange_rates ExchangeRatesController.instance end |
#orders ⇒ OrdersController
Singleton access to orders controller
13 14 15 |
# File 'lib/raas/raas_client.rb', line 13 def orders OrdersController.instance end |
#status ⇒ StatusController
Singleton access to status controller
31 32 33 |
# File 'lib/raas/raas_client.rb', line 31 def status StatusController.instance end |