Sha256: e913547ffaede0f5091a5fc7cadd537c3b95476a012e45ea767b7f4318f29fab

Contents?: true

Size: 544 Bytes

Versions: 1

Compression:

Stored size: 544 Bytes

Contents

# frozen_string_literal: true

module RelicLink
  module Coh3
    module Faraday
      # Faraday connection implementation for API requests. You shouldn't
      # ever have to use this directly.
      module Connection
        private

        def connection
          @connection ||= ::Faraday.new(
            url: 'https://coh3-api.reliclink.com/community/leaderboard'
          ) do |f|
            f.params[:title] = 'coh3'

            f.response :logger
            f.response :json
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
relic_link-0.1.0 lib/relic_link/coh3/faraday/connection.rb