Sha256: dfc09b739eaaf2dc8f7a5c81b72fa9747020a2f8b0d6293e974d438396f73599
Contents?: true
Size: 808 Bytes
Versions: 1
Compression:
Stored size: 808 Bytes
Contents
module ThinkFeelDoEngine module Reports # Scenario: a Participant clicks, causes a page to render, # starts/pauses/finishes a video, etc. class Event def self.columns %w( participant_id emitted_at current_url headers kind ) end def self.all Participant.select(:id, :study_id, :is_admin).map do |participant| EventCapture::Event.where(participant_id: participant.id) .map do |event| { participant_id: participant.study_id, is_admin: participant.is_admin, emitted_at: event.emitted_at.iso8601, current_url: event.current_url, headers: event.headers, kind: event.kind } end end.flatten end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
think_feel_do_engine-3.12.6 | app/models/think_feel_do_engine/reports/event.rb |