lib/esendex/api_connection.rb in esendex-0.2.1 vs lib/esendex/api_connection.rb in esendex-0.2.2
- old
+ new
@@ -14,15 +14,15 @@
end
def get(url)
@connection.get url, default_headers
rescue => e
- raise ApiErrorFactory.new.get_api_error(e)
+ raise Esendex::ApiErrorFactory.new.get_api_error(e)
end
def post(url, body)
@connection.post url, body, default_headers
rescue => e
- raise ApiErrorFactory.new.get_api_error(e)
+ raise Esendex::ApiErrorFactory.new.get_api_error(e)
end
end
\ No newline at end of file