Class: FtxExchangeApi::BaseApi
- Inherits:
-
Object
- Object
- FtxExchangeApi::BaseApi
- Includes:
- HTTParty
- Defined in:
- lib/ftx_exchange_api/base_api.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(config: nil) ⇒ BaseApi
constructor
A new instance of BaseApi.
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
#config ⇒ Object (readonly)
Returns the value of attribute config.
9 10 11 |
# File 'lib/ftx_exchange_api/base_api.rb', line 9 def config @config end |