Class: SFRest::Audit
- Inherits:
-
Object
- Object
- SFRest::Audit
- Defined in:
- lib/sfrest/audit.rb
Overview
Get all the audit devents.
Instance Method Summary collapse
-
#initialize(conn) ⇒ Audit
constructor
A new instance of Audit.
-
#list_audit_events ⇒ Hash{'count' => Integer, 'changes' => [Hash, Hash]}
Lists audit events.
Constructor Details
#initialize(conn) ⇒ Audit
Returns a new instance of Audit.
7 8 9 |
# File 'lib/sfrest/audit.rb', line 7 def initialize(conn) @conn = conn end |
Instance Method Details
#list_audit_events ⇒ Hash{'count' => Integer, 'changes' => [Hash, Hash]}
Lists audit events.
13 14 15 16 |
# File 'lib/sfrest/audit.rb', line 13 def list_audit_events current_path = '/api/v1/audit' @conn.get(current_path) end |