Sha256: 63fa91b393476e8e799f7338b2eb7d2f7f49a4e2e1ab9ea88cc7f894acbd9b5e
Contents?: true
Size: 667 Bytes
Versions: 7
Compression:
Stored size: 667 Bytes
Contents
# frozen_string_literal: true module FaradayMiddlewareSubclasses class SubclassNoOptions < Faraday::Middleware end class SubclassOneOption < Faraday::Middleware DEFAULT_OPTIONS = { some_other_option: false }.freeze end class SubclassTwoOptions < Faraday::Middleware DEFAULT_OPTIONS = { some_option: true, some_other_option: false }.freeze end end Faraday::Response.register_middleware(no_options: FaradayMiddlewareSubclasses::SubclassNoOptions) Faraday::Response.register_middleware(one_option: FaradayMiddlewareSubclasses::SubclassOneOption) Faraday::Response.register_middleware(two_options: FaradayMiddlewareSubclasses::SubclassTwoOptions)
Version data entries
7 entries across 7 versions & 2 rubygems