lib/github_api/connection.rb
# Exposes middleware builder to facilitate custom stacks and easy
# addition of new extensions such as cache adapter.
#
# @api public
Exposes middleware builder to facilitate custom stacks and easy
addition of new extensions such as cache adapter.
Exposes middleware builder to facilitate custom stacks and easy addition of new extensions such as cache adapter .
def stack(options = {})
      @stack ||= begin
        builder_class = defined?(Faraday::RackBuilder) ? Faraday::RackBuilder : Faraday::Builder
        builder_class.new(&Github.default_middleware(options))
      end
    end
def stack ( options = { } ) @stack ||= begin builder_class = defined? ( Faraday :: RackBuilder ) ? Faraday :: RackBuilder : Faraday :: Builder builder_class . new ( & Github . default_middleware ( options ) ) end end
Exposes middleware builder to facilitate custom stacks and easy
addition of new extensions such as cache adapter.
Exposes middleware builder to facilitate custom stacks and easy addition of new extensions such as cache adapter .
options
api
None