class SFRest::Audit

Get all the audit devents.

Public Class Methods

new(conn) click to toggle source

@param [SFRest::Connection] conn

# File lib/sfrest/audit.rb, line 7
def initialize(conn)
  @conn = conn
end

Public Instance Methods

list_audit_events() click to toggle source

Lists audit events. @return [Hash{'count' => Integer, 'changes' => [Hash, Hash]}]

# File lib/sfrest/audit.rb, line 13
def list_audit_events
  current_path = '/api/v1/audit'
  @conn.get(current_path)
end