lib/faraday_middleware/response/rashify.rb in agiley-faraday_middleware-0.8.3.2 vs lib/faraday_middleware/response/rashify.rb in agiley-faraday_middleware-0.9.0
- old
+ new
@@ -1,7 +1,9 @@
require 'faraday_middleware/response/mashify'
module FaradayMiddleware
+ # Public: Converts parsed response bodies to a Hashie::Rash if they were of
+ # Hash or Array type.
class Rashify < Mashify
dependency do
require 'rash'
self.mash_class = ::Hashie::Rash
end