Class: FtxExchangeApi::BaseApi

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/ftx_exchange_api/base_api.rb

Direct Known Subclasses

PublicApi

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config: nil) ⇒ BaseApi

Returns a new instance of BaseApi.



11
12
13
14
# File 'lib/ftx_exchange_api/base_api.rb', line 11

def initialize(config: nil)
  @config = Config.new(config)
  @config.reverse_merge!(FtxExchangeApi.default_config)
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



9
10
11
# File 'lib/ftx_exchange_api/base_api.rb', line 9

def config
  @config
end