Sha256: 2ba895a509a3ecfaf6637692a39ea26db48ee141c8838a42b82ccbde5f8e08cd

Contents?: true

Size: 378 Bytes

Versions: 5

Compression:

Stored size: 378 Bytes

Contents

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::Mash::Rash
    end
  end
end

# deprecated alias
Faraday::Response::Rashify = FaradayMiddleware::Rashify

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
faraday_middleware-0.14.0 lib/faraday_middleware/response/rashify.rb
faraday_middleware-0.13.1 lib/faraday_middleware/response/rashify.rb
faraday_middleware-0.13.0 lib/faraday_middleware/response/rashify.rb
faraday_middleware-0.12.2 lib/faraday_middleware/response/rashify.rb
faraday_middleware-0.12.0 lib/faraday_middleware/response/rashify.rb