Class: MaxExchangeApi::BaseApi
- Inherits:
-
Object
- Object
- MaxExchangeApi::BaseApi
- Includes:
- HTTParty
- Defined in:
- lib/max_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.
12 13 14 15 |
# File 'lib/max_exchange_api/base_api.rb', line 12 def initialize(config: nil) @config = Config.new(config) @config.reverse_merge!(MaxExchangeApi.default_config) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
10 11 12 |
# File 'lib/max_exchange_api/base_api.rb', line 10 def config @config end |