Class: TrackingApi::TrackingService
- Inherits:
-
Object
- Object
- TrackingApi::TrackingService
- Includes:
- HTTParty
- Defined in:
- lib/tracking/api.rb
Instance Method Summary collapse
- #activities(cid) ⇒ Object
- #contacts ⇒ Object
-
#initialize(hid) ⇒ TrackingService
constructor
A new instance of TrackingService.
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 |
#contacts ⇒ Object
12 13 14 |
# File 'lib/tracking/api.rb', line 12 def contacts self.class.get "/contacts", { query: { hid: @hid } } end |