Class: Iterable::Services::EventService

Inherits:
BaseService show all
Defined in:
lib/iterable/services/event_service.rb

Instance Attribute Summary

Attributes inherited from BaseService

#api_key

Instance Method Summary collapse

Methods inherited from BaseService

#initialize

Constructor Details

This class inherits a constructor from Iterable::Services::BaseService

Instance Method Details

#track(event) ⇒ Object



10
11
12
13
# File 'lib/iterable/services/event_service.rb', line 10

def track(event)
  raise Exceptions::ServiceException, "Must be a Iterable::Event" unless event.is_a?(Iterable::Event)
  post(Util::Config.get('endpoints.track_event'), event)
end