Parent

Methods

Faraday::Response::Rashify

Public Instance Methods

parse(body) click to toggle source
# File lib/faraday/response/rashify.rb, line 8
def parse(body)
  case body
  when Hash
    ::Hashie::Rash.new(body)
  when Array
    body.map { |item| item.is_a?(Hash) ? ::Hashie::Rash.new(item) : item }
  else
    body
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.