Sha256: f32bdc1680c6eef3c8d992caefaeed1c8bef43fbab17122c33e3d877643635bd

Contents?: true

Size: 409 Bytes

Versions: 6

Compression:

Stored size: 409 Bytes

Contents

# frozen_string_literal: true

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

6 entries across 6 versions & 2 rubygems

Version Path
faraday_middleware-1.2.1 lib/faraday_middleware/response/rashify.rb
op_connect-0.1.2 vendor/bundle/ruby/3.1.0/gems/faraday_middleware-1.2.0/lib/faraday_middleware/response/rashify.rb
faraday_middleware-1.2.0 lib/faraday_middleware/response/rashify.rb
faraday_middleware-1.1.0 lib/faraday_middleware/response/rashify.rb
faraday_middleware-1.0.0 lib/faraday_middleware/response/rashify.rb
faraday_middleware-1.0.0.rc1 lib/faraday_middleware/response/rashify.rb