Class: Lionshare::Wrapper::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/lionshare/wrapper/base.rb

Direct Known Subclasses

Markets, Prices

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



4
5
6
7
8
9
10
# File 'lib/lionshare/wrapper/base.rb', line 4

def initialize
  @root_url = Settings.config.api_url + prefix
  @client = HTTP::Client.new(headers: {
    'Accept': 'application/json',
    'Content-Type': 'application/json'
  })
end