Class: Sevk::Resources::Events

Inherits:
Base
  • Object
show all
Defined in:
lib/sevk/resources/events.rb

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Sevk::Resources::Base

Instance Method Details

#list(page: nil, limit: nil, type: nil, contact_id: nil) ⇒ Object



8
9
10
11
# File 'lib/sevk/resources/events.rb', line 8

def list(page: nil, limit: nil, type: nil, contact_id: nil)
  params = { page: page, limit: limit, type: type, contact_id: contact_id }
  client.get("/events#{build_query_string(params)}")
end

#stats ⇒ Object



13
14
15
# File 'lib/sevk/resources/events.rb', line 13

def stats
  client.get("/events/stats")
end