Class: MaxExchangeApi::BaseApi

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

Direct Known Subclasses

PrivateApi, PublicApi

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject (readonly)

Returns the value of attribute config.



10
11
12
# File 'lib/max_exchange_api/base_api.rb', line 10

def config
  @config
end