def connection(options = {}, &block)
      @faraday_options ||= options.dup
      if block_given?
        raise ConnectionAlreadyInitializedError if @connection
        @faraday_block = if @faraday_options.delete(:default) == false
                           block
                         else
                           lambda do |conn|
                             default_faraday_block.call conn
                             yield conn
                           end
                         end
      else
        @connection ||= Faraday.new(_url, faraday_options, &faraday_block)
      end
    end
def connection(options = {}, &block)
      @faraday_options ||= options.dup
      if block_given?
        raise ConnectionAlreadyInitializedError if @connection
        @faraday_block = if @faraday_options.delete(:default) == false
                           block
                         else
                           lambda do |conn|
                             default_faraday_block.call conn
                             yield conn
                           end
                         end
      else
        @connection ||= Faraday.new(_url, faraday_options, &faraday_block)
      end
    end
Public: Initializes an EntryPoint.

 url    - A String with the entry point of your API.
 Public: A Faraday connection to use as a HTTP client.

 options - A Hash containing additional options to pass to Farday. Use
 {default: false} if you want to skip using default Faraday options set by
 Hyperclient.

 Returns a Faraday::Connection.