Class: Brazify::Event

Inherits:
Resource show all
Defined in:
lib/brazify/resources/event.rb

Class Method Summary collapse

Methods inherited from Resource

list_methods

Class Method Details

.listObject



4
5
6
# File 'lib/brazify/resources/event.rb', line 4

def list
  get(path: '/events/list')
end

.retrieve_analytics(event:, length:, options: {}) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/brazify/resources/event.rb', line 8

def retrieve_analytics(event:, length:, options: {})
  get(
    path: '/events/data_series',
    params: {
      event: event,
      length: length
    }.merge(options)
  )
end