Sha256: 15624d89ecaae558d51e07dbf829a508578f9fc42e100a5f4a8ecb42e90f0eea
Contents?: true
Size: 842 Bytes
Versions: 11
Compression:
Stored size: 842 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 is_admin emitted_at current_url headers kind ) end def self.all Participant.not_moderator .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
11 entries across 11 versions & 1 rubygems