Sha256: 5b1de7aa48d4627b42a5cfaa6d102fea435040a9d585715bb2b6c74e205fb560
Contents?: true
Size: 333 Bytes
Versions: 5
Compression:
Stored size: 333 Bytes
Contents
module Beatport module Support class Middleware < Faraday::Response::Middleware def parse(body) body = jsonify(body) end def jsonify(body) body = ::JSON.parse(body) body = Support::Inflector.process_keys(body) { |k| Support::Inflector.underscore(k) } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems