modules/check_in/app/services/chip_api/request.rb
def connection
      Faraday.new(url: url) do |conn|
        conn.use :breakers
        conn.response :check_in_errors
        conn.use :check_in_logging
        conn.response :raise_error, error_prefix: service_name
        conn.adapter Faraday.default_adapter
      end
    end
##
# Create a connection object that manages the attributes
# and the middleware stack for making our HTTP requests to Chip
#
# @return [Faraday::Connection]
#
Create a connection object that manages the attributes
and the middleware stack for making our HTTP requests to Chip
Create a connection object that manages the attributes and the middleware stack for making our HTTP requests to Chip
def connection
      Faraday.new(url: url) do |conn|
        conn.use :breakers
        conn.response :check_in_errors
        conn.use :check_in_logging
        conn.response :raise_error, error_prefix: service_name
        conn.adapter Faraday.default_adapter
      end
    end
def connection Faraday . new ( url : url ) do | conn | conn . use :breakers conn . response :check_in_errors conn . use :check_in_logging conn . response :raise_error , error_prefix : service_name conn . adapter Faraday . default_adapter end end
Create a connection object that manages the attributes
and the middleware stack for making our HTTP requests to Chip
Create a connection object that manages the attributes and the middleware stack for making our HTTP requests to Chip
None
Faraday::Connection