Sha256: 257e546041c7d35fa53107ac401ce3abcf9c8ad6c23d94230747b22e11e8c03a
Contents?: true
Size: 399 Bytes
Versions: 8
Compression:
Stored size: 399 Bytes
Contents
# frozen_string_literal: true require 'faraday' module Checkability # Create connection # class ExternalApiConnector attr_reader :path def initialize(path) @path = path end def connection Faraday.new(url: path) do |faraday| faraday.headers['Content-Type'] = 'application/json' faraday.adapter Faraday.default_adapter end end end end
Version data entries
8 entries across 8 versions & 1 rubygems