Sha256: 55bc6753d19833c512c2dcf278b53a786ba07384268f82f5c4054045cb7e111a
Contents?: true
Size: 463 Bytes
Versions: 1
Compression:
Stored size: 463 Bytes
Contents
module Nusii class Connection delegate :get, :post, :put, :delete, :to => :connection HOST = "https://app.nusii.com" private 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nusii-0.1.1 | lib/nusii/api_operations/connection.rb |