Module: Bearcat::Client::Reports
- Included in:
- Bearcat::Client
- Defined in:
- lib/bearcat/client/reports.rb
Instance Method Summary collapse
- #delete_report(account, report_name, report_id) ⇒ Object
- #report_history(account, report_name) ⇒ Object
- #report_list(account) ⇒ Object
- #report_status(account, report_name, report_id) ⇒ Object
- #start_report(account, report_name, params = {}) ⇒ Object
Instance Method Details
#delete_report(account, report_name, report_id) ⇒ Object
21 22 23 |
# File 'lib/bearcat/client/reports.rb', line 21 def delete_report(account, report_name, report_id) delete("/api/v1/accounts/#{account}/reports/#{report_name}/#{report_id}") end |
#report_history(account, report_name) ⇒ Object
13 14 15 |
# File 'lib/bearcat/client/reports.rb', line 13 def report_history(account, report_name) get("/api/v1/accounts/#{account}/reports/#{report_name}") end |
#report_list(account) ⇒ Object
5 6 7 |
# File 'lib/bearcat/client/reports.rb', line 5 def report_list(account) get("/api/v1/accounts/#{account}/reports") end |
#report_status(account, report_name, report_id) ⇒ Object
17 18 19 |
# File 'lib/bearcat/client/reports.rb', line 17 def report_status(account, report_name, report_id) get("/api/v1/accounts/#{account}/reports/#{report_name}/#{report_id}") end |
#start_report(account, report_name, params = {}) ⇒ Object
9 10 11 |
# File 'lib/bearcat/client/reports.rb', line 9 def start_report(account, report_name, params = {}) post("/api/v1/accounts/#{account}/reports/#{report_name}", params) end |