lib/schoolfinder/response.rb in schoolfinder-0.2.0 vs lib/schoolfinder/response.rb in schoolfinder-0.2.1
- old
+ new
@@ -2,10 +2,10 @@
class Response
attr_accessor :body
def initialize(response)
- self.body = rash_response(response)
+ rash_response(response)
if self.body.respond_to?('fault_string')
raise Schoolfinder::Error.new(self.body.fault_code, self.body.fault_string)
end
end