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:



7
8
9
# File 'lib/sfrest/audit.rb', line 7

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]})


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