Class: BinanceClient::Loader
- Inherits:
-
Object
- Object
- BinanceClient::Loader
- Defined in:
- lib/binance_client/loader.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call ⇒ Object
4 5 6 |
# File 'lib/binance_client/loader.rb', line 4 def self.call self.new.call end |
Instance Method Details
#binance_client_dir ⇒ Object
39 40 41 |
# File 'lib/binance_client/loader.rb', line 39 def binance_client_dir File.join(File.dirname(__FILE__)) end |
#call ⇒ Object
8 9 10 11 12 |
# File 'lib/binance_client/loader.rb', line 8 def call models requests responses end |
#models ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/binance_client/loader.rb', line 14 def models require "binance_client/models/base_model" Dir[File.join(binance_client_dir, "models/*.rb")].each do |f| require f end end |
#requests ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/binance_client/loader.rb', line 22 def requests require "binance_client/requests/base_request" require "binance_client/requests/authenticated_base_request" require "binance_client/requests/base_create_order_request" Dir[File.join(binance_client_dir, "requests/*.rb")].each do |f| require f end end |
#responses ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/binance_client/loader.rb', line 31 def responses require "binance_client/responses/base_response" require "binance_client/responses/base_create_order_response" Dir[File.join(binance_client_dir, "responses/*.rb")].each do |f| require f end end |