Sha256: cf4d46dd516ef06afd05d8156ba8d861df47690e37ceeb6adfea22ddb7ee4eda
Contents?: true
Size: 429 Bytes
Versions: 1
Compression:
Stored size: 429 Bytes
Contents
module ChgkRating module Connection BASE_URL = 'http://rating.chgk.info/api'.freeze def connection options = { headers: { accept: 'application/json', user_agent: "chgk_rating ruby gem/#{ChgkRating::VERSION}" }, url: BASE_URL + '/' } Faraday.new options do |faraday| faraday.adapter Faraday.default_adapter end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chgk_rating-1.0.0.rc1 | lib/chgk_rating/connection.rb |