Class: SFRest::Audit

Inherits:
Object
  • Object
show all
Defined in:
lib/sfrest/audit.rb

Overview

Get all the audit devents.

Instance Method Summary collapse

Constructor Details

#initialize(conn) ⇒ Audit

Returns a new instance of Audit.

Parameters:



5
6
7
# File 'lib/sfrest/audit.rb', line 5

def initialize(conn)
  @conn = conn
end

Instance Method Details

#list_audit_eventsHash{'count' => Integer, 'changes' => [Hash, Hash]}

Lists audit events.

Returns:

  • (Hash{'count' => Integer, 'changes' => [Hash, Hash]})


11
12
13
14
# File 'lib/sfrest/audit.rb', line 11

def list_audit_events
  current_path = '/api/v1/audit'
  @conn.get(current_path)
end