def connection
      options = { url: api_url, ssl: { verify: false } }

      connection = Faraday.new(options) do |conn|
        conn.response :readmill_errors
        conn.response :mashify
        conn.response :json

        conn.adapter  adapter
      end

      connection
    end
def connection
      options = { url: api_url, ssl: { verify: false } }

      connection = Faraday.new(options) do |conn|
        conn.response :readmill_errors
        conn.response :mashify
        conn.response :json

        conn.adapter  adapter
      end

      connection
    end
Internal: Build a new instance of Faraday with some default options and
 return it.

 Returns a Faraday::Connection.