lib/passworks/response.rb in passworks-0.0.2 vs lib/passworks/response.rb in passworks-0.0.3

- old
+ new

@@ -28,14 +28,18 @@ def previous_page headers['x-prev-page'].to_i if previous_page? end def http_status - @response[:status].to_i + @response.status end + def response + @response + end + def ok? - (http_status >= 200) && (http_status < 300) + @response.success? end def headers @response.env[:response_headers] || {} end \ No newline at end of file