Module: Vaultoro
- Defined in:
- lib/vaultoro.rb,
lib/vaultoro/base.rb,
lib/vaultoro/version.rb,
lib/vaultoro/configuration.rb,
lib/vaultoro/basic_api/order.rb,
lib/vaultoro/basic_api/trade.rb,
lib/vaultoro/trading_api/buy.rb,
lib/vaultoro/basic_api/client.rb,
lib/vaultoro/trading_api/sell.rb,
lib/vaultoro/basic_api/bid_ask.rb,
lib/vaultoro/trading_api/order.rb,
lib/vaultoro/trading_api/trade.rb,
lib/vaultoro/trading_api/cancel.rb,
lib/vaultoro/trading_api/client.rb,
lib/vaultoro/trading_api/trades.rb,
lib/vaultoro/trading_api/balance.rb,
lib/vaultoro/basic_api/buy_orders.rb,
lib/vaultoro/basic_api/order_book.rb,
lib/vaultoro/trading_api/balances.rb,
lib/vaultoro/trading_api/withdraw.rb,
lib/vaultoro/basic_api/market_data.rb,
lib/vaultoro/basic_api/sell_orders.rb,
lib/vaultoro/basic_api/transaction.rb,
lib/vaultoro/basic_api/latest_price.rb,
lib/vaultoro/basic_api/price_volume.rb,
lib/vaultoro/basic_api/transactions.rb,
lib/vaultoro/basic_api/latest_trades.rb
Defined Under Namespace
Modules: BasicAPI, Trading, TradingAPI, VERSION
Classes: Base, Configuration
Constant Summary
collapse
- @@configuration =
nil
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
38
39
40
|
# File 'lib/vaultoro.rb', line 38
def self.configuration
@@configuration || configure
end
|
32
33
34
35
36
|
# File 'lib/vaultoro.rb', line 32
def self.configure
@@configuration = Configuration.new
yield(configuration) if block_given?
configuration
end
|
.method_missing(method_sym, *arguments, &block) ⇒ Object
42
43
44
45
46
47
48
|
# File 'lib/vaultoro.rb', line 42
def self.method_missing(method_sym, *arguments, &block)
if configuration.respond_to?(method_sym)
configuration.send(method_sym)
else
super
end
end
|
.respond_to?(method_sym, include_private = false) ⇒ Boolean
50
51
52
53
54
55
56
|
# File 'lib/vaultoro.rb', line 50
def self.respond_to?(method_sym, include_private = false)
if configuration.respond_to?(method_sym, include_private)
true
else
super
end
end
|