lib/bearcat/client/account_reports.rb in bearcat-1.4.13 vs lib/bearcat/client/account_reports.rb in bearcat-1.5.0.beta1

- old
+ new

@@ -1,22 +1,14 @@ module Bearcat class Client module AccountReports + extend ClientModule - def available_reports(account, params={}) - get("/api/v1/accounts/#{account}/reports", params) - end - - def start_report(account, report, params) - post("api/v1/accounts/#{account}/reports/#{report}", params) - end - - def report_index(account, report, params={}) - get("/api/v1/accounts/#{account}/reports/#{report}", params) - end - - def report_status(account, report, report_id) - get("/api/v1/accounts/#{account}/reports/#{report}/#{report_id}") + prefix "/api/v1/accounts/:account/reports/" do + get :available_reports + post :start_report, ":report" + get :report_index, ":report" + get :report_status, ":report/:report_id" end end end end \ No newline at end of file