Module: Bearcat::Client::AccountReports
- Defined in:
- lib/bearcat/client/account_reports.rb
Instance Method Summary collapse
- #available_reports(account, params = {}) ⇒ Object
- #report_index(account, report, params = {}) ⇒ Object
- #report_status(account, report, report_id) ⇒ Object
- #start_report(account, report, params) ⇒ Object
Instance Method Details
#available_reports(account, params = {}) ⇒ Object
5 6 7 |
# File 'lib/bearcat/client/account_reports.rb', line 5 def available_reports(account, params={}) get("/api/v1/accounts/#{account}/reports", params) end |
#report_index(account, report, params = {}) ⇒ Object
13 14 15 |
# File 'lib/bearcat/client/account_reports.rb', line 13 def report_index(account, report, params={}) get("/api/v1/accounts/#{account}/reports/#{report}", params) end |
#report_status(account, report, report_id) ⇒ Object
17 18 19 |
# File 'lib/bearcat/client/account_reports.rb', line 17 def report_status(account, report, report_id) get("/api/v1/accounts/#{account}/reports/#{report}/#{report_id}") end |
#start_report(account, report, params) ⇒ Object
9 10 11 |
# File 'lib/bearcat/client/account_reports.rb', line 9 def start_report(account, report, params) post("api/v1/accounts/#{account}/reports/#{report}", params) end |