Method: API.establish_connection

Defined in:
lib/quintype/api.rb

.establish_connection(host, conn = Faraday.new(url: host)) ⇒ Object



12
13
14
15
16
17
# File 'lib/quintype/api.rb', line 12

def establish_connection(host, conn = Faraday.new(url: host))
  @@host = host
  @@api_base = host + '/api/'
  @@bulk_cache ||= ActiveSupport::Cache::MemoryStore.new
  @@conn = conn
end