Class: Raas::RaasClient

Inherits:
Object
  • Object
show all
Defined in:
lib/raas/raas_client.rb

Overview

raas client class.

Instance Method Summary collapse

Constructor Details

#initialize(platform_name: 'QAPlatform2', platform_key: 'apYPfT6HNONpDRUj3CLGWYt7gvIHONpDRUYPfT6Hj') ⇒ RaasClient

Initializer with authentication and configuration parameters.



56
57
58
59
60
61
62
# File 'lib/raas/raas_client.rb', line 56

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

#accountsAccountsController

Singleton access to accounts controller.

Returns:



15
16
17
# File 'lib/raas/raas_client.rb', line 15

def accounts
  AccountsController.instance
end

#catalogCatalogController

Singleton access to catalog controller.

Returns:



45
46
47
# File 'lib/raas/raas_client.rb', line 45

def catalog
  CatalogController.instance
end

#configConfiguration

Returns the configuration class for easy access.

Returns:



51
52
53
# File 'lib/raas/raas_client.rb', line 51

def config
  Configuration
end

#customersCustomersController

Singleton access to customers controller.

Returns:



39
40
41
# File 'lib/raas/raas_client.rb', line 39

def customers
  CustomersController.instance
end

#exchange_ratesExchangeRatesController

Singleton access to exchange_rates controller.

Returns:



33
34
35
# File 'lib/raas/raas_client.rb', line 33

def exchange_rates
  ExchangeRatesController.instance
end

#fundFundController

Singleton access to fund controller.

Returns:



27
28
29
# File 'lib/raas/raas_client.rb', line 27

def fund
  FundController.instance
end

#ordersOrdersController

Singleton access to orders controller.

Returns:



21
22
23
# File 'lib/raas/raas_client.rb', line 21

def orders
  OrdersController.instance
end

#statusStatusController

Singleton access to status controller.

Returns:



9
10
11
# File 'lib/raas/raas_client.rb', line 9

def status
  StatusController.instance
end