lib/open-weather-api/resources/base.rb in open-weather-api-0.0.5 vs lib/open-weather-api/resources/base.rb in open-weather-api-0.0.6
- old
+ new
@@ -25,10 +25,14 @@
end
private
def mode
- (@parameters[:mode] || 'json').to_s.to_sym
+ (@parameters[:mode] || :json).to_s.to_sym
+ end
+
+ def handle_response_raw(response)
+ response
end
def handle_response_json(response)
json = JSON.parse(response.body)
setup_indifferent_access(json)
\ No newline at end of file