Class: RemarkAnalytics::Jobs::PostEventJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- RemarkAnalytics::Jobs::PostEventJob
- Defined in:
- lib/remark_analytics/jobs/post_event_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(event_params) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/remark_analytics/jobs/post_event_job.rb', line 6 def perform(event_params) return if connection.blank? connection.post( @events_endpoint, { event: event_params }.to_json, 'Content-Type' => 'application/json' ) end |