lib/yelp4r/response.rb in yelp4r-1.1.0 vs lib/yelp4r/response.rb in yelp4r-1.2.0
- old
+ new
@@ -2,11 +2,11 @@
class Response
attr_accessor :body
def initialize(response)
- @body = mash_response(response)
+ @body = rash_response(response)
end
def response_code
@body.message.code
end
@@ -27,21 +27,21 @@
end
end
private
- def mash_response(response)
+ def rash_response(response)
if response.is_a?(Array)
@body = []
response.each do |b|
if b.is_a?(Hash)
- @body << Mash.new(b.rubyify_keys!)
+ @body << Hashie::Rash.new(b)
else
@body << b
end
end
elsif response.is_a?(Hash)
- @body = Mash.new(response.rubyify_keys!)
+ @body = Hashie::Rash.new(response)
else
@body = response
end
end