Sha256: 12eabb7f499a4e94c021f1ad0de02a70148a649cf2cca57e06f28fdfb72e81c2
Contents?: true
Size: 548 Bytes
Versions: 1
Compression:
Stored size: 548 Bytes
Contents
require 'faraday_middleware/response/mashify' module FaradayMiddleware # Public: Converts parsed response bodies to a Hashie::Trash if they were of # Hash or Array type. class MashRashify < Mashify dependency do require 'hashie/mash/rash' self.mash_class = ::Hashie::Mash::Rash end end end if Faraday::Middleware.respond_to? :register_middleware Faraday::Response.register_middleware mashrashify: FaradayMiddleware::MashRashify end # deprecated alias Faraday::Response::MashRashify = FaradayMiddleware::MashRashify
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nexmos-0.3 | lib/faraday_middleware/response/mashrashify.rb |