Class: Sevk::Resources::Events
- Inherits:
-
Base
- Object
- Base
- Sevk::Resources::Events
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
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
|