lib/centro/api/base.rb in centro-client-0.0.3 vs lib/centro/api/base.rb in centro-client-0.0.4

- old
+ new

@@ -18,9 +18,15 @@ auth_connection.send(method, *args) rescue Exception => e raise adapt_error(e) end + def planner(method, *args) + planner_connection.send(method, *args) + rescue Exception => e + raise adapt_error(e) + end + private def adapt_error(e) case e when Faraday::Error::ConnectionFailed