class Nusii::Connection
Constants
- HOST
Private Instance Methods
connection()
click to toggle source
# File lib/nusii/api_operations/connection.rb, line 11 def connection @connection ||= Faraday.new(HOST) do |conn| conn.adapter :net_http conn.headers['Authorization'] = "Token token=#{Nusii.api_key}" conn.headers['User-Agent'] = Nusii.user_agent conn.headers['Content-Type'] = 'application/json' end end