Class: TrackingApi::TrackingService

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/tracking/api.rb

Instance Method Summary collapse

Constructor Details

#initialize(hid) ⇒ TrackingService

Returns a new instance of TrackingService.



8
9
10
# File 'lib/tracking/api.rb', line 8

def initialize(hid)
  @hid = hid
end

Instance Method Details

#activities(cid) ⇒ Object



16
17
18
# File 'lib/tracking/api.rb', line 16

def activities(cid)
  self.class.get "/activities", { query: { hid: @hid, cid: cid } }
end

#contactsObject



12
13
14
# File 'lib/tracking/api.rb', line 12

def contacts
  self.class.get "/contacts", { query: { hid: @hid } }
end