lib/pmp/response.rb in pmp-0.2.0 vs lib/pmp/response.rb in pmp-0.2.1
- old
+ new
@@ -6,23 +6,23 @@
def initialize(raw, request)
@raw = raw
@request = request
- check_for_error(raw)
+ # check_for_error(raw)
end
- def check_for_error(response)
- status_code_type = response.status.to_s[0]
- case status_code_type
- when "2"
- # puts "all is well, status: #{response.status}"
- when "4", "5"
- raise "Whoops, error back from PMP: #{response.status}"
- else
- raise "Unrecongized status code: #{response.status}"
- end
- end
+ # def check_for_error(response)
+ # status_code_type = response.status.to_s[0]
+ # case status_code_type
+ # when "2"
+ # # puts "all is well, status: #{response.status}"
+ # when "4", "5"
+ # raise "Whoops, error back from PMP: #{response.status}"
+ # else
+ # raise "Unrecongized status code: #{response.status}"
+ # end
+ # end
def body
self.raw.body
end