Class: HookSniff::AuditLog
- Inherits:
-
Object
- Object
- HookSniff::AuditLog
- Defined in:
- lib/hooksniff/api/audit_log.rb
Instance Method Summary collapse
- #get(id) ⇒ Object
-
#initialize(client) ⇒ AuditLog
constructor
A new instance of AuditLog.
- #list(params = {}) ⇒ Object
Constructor Details
#initialize(client) ⇒ AuditLog
Returns a new instance of AuditLog.
5 6 7 |
# File 'lib/hooksniff/api/audit_log.rb', line 5 def initialize(client) @client = client end |
Instance Method Details
#get(id) ⇒ Object
13 14 15 |
# File 'lib/hooksniff/api/audit_log.rb', line 13 def get(id) @client.execute_request("GET", "/v1/audit-log/#{id}") end |
#list(params = {}) ⇒ Object
9 10 11 |
# File 'lib/hooksniff/api/audit_log.rb', line 9 def list(params = {}) @client.execute_request("GET", "/v1/audit-log", query_params: params) end |