Class: Coffrify::Audit

Inherits:
Object
  • Object
show all
Defined in:
lib/coffrify/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Audit

Returns a new instance of Audit.



145
# File 'lib/coffrify/client.rb', line 145

def initialize(client); @c = client; end

Instance Method Details

#list(action: nil, since: nil, until_: nil, limit: 100) ⇒ Object



146
147
148
149
150
151
152
# File 'lib/coffrify/client.rb', line 146

def list(action: nil, since: nil, until_: nil, limit: 100)
  q = { limit: limit }
  q[:action] = action if action
  q[:since]  = since  if since
  q[:until]  = until_ if until_
  @c.request(:get, "/audit", query: q)
end