Class: Dyn::Messaging::Clicks

Inherits:
Object
  • Object
show all
Defined in:
lib/dyn/messaging/clicks.rb

Instance Method Summary collapse

Constructor Details

#initialize(dyn) ⇒ Clicks

Returns a new instance of Clicks.



22
23
24
# File 'lib/dyn/messaging/clicks.rb', line 22

def initialize(dyn)
  @dyn = dyn
end

Instance Method Details

#count(starttime, endtime) ⇒ Object



26
27
28
# File 'lib/dyn/messaging/clicks.rb', line 26

def count(starttime, endtime)
  @dyn.get("#{resource_path}/count", {starttime:starttime, endtime:endtime})
end

#list(starttime, endtime, startindex = 0) ⇒ Object



30
31
32
# File 'lib/dyn/messaging/clicks.rb', line 30

def list(starttime, endtime, startindex=0)
  @dyn.get("#{resource_path}", {starttime:starttime, endtime:endtime, startindex:startindex})
end

#unique(starttime, endtime, startindex = 0) ⇒ Object



38
39
40
# File 'lib/dyn/messaging/clicks.rb', line 38

def unique(starttime, endtime, startindex=0)
  @dyn.get("#{resource_path}/unique", {starttime:starttime, endtime:endtime, startindex:startindex})
end

#unique_count(starttime, endtime) ⇒ Object



34
35
36
# File 'lib/dyn/messaging/clicks.rb', line 34

def unique_count(starttime, endtime)
  @dyn.get("#{resource_path}/count/unique", {starttime:starttime, endtime:endtime})
end