Module: Bearcat::Client::Reports

Included in:
Bearcat::Client
Defined in:
lib/bearcat/client/reports.rb

Instance Method Summary collapse

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(, report_name, report_id)
  delete("/api/v1/accounts/#{}/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(, report_name)
  get("/api/v1/accounts/#{}/reports/#{report_name}")
end

#report_list(account) ⇒ Object



5
6
7
# File 'lib/bearcat/client/reports.rb', line 5

def report_list()
  get("/api/v1/accounts/#{}/reports")
end

#report_status(account, report_name, report_id) ⇒ Object



17
18
19
# File 'lib/bearcat/client/reports.rb', line 17

def report_status(, report_name, report_id)
  get("/api/v1/accounts/#{}/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(, report_name, params = {})
  post("/api/v1/accounts/#{}/reports/#{report_name}", params)
end