Class: Analytic::Event
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Analytic::Event
- Defined in:
- app/models/analytic/event.rb
Class Method Summary collapse
Class Method Details
.distinct_sessions_count ⇒ Integer
20 21 22 |
# File 'app/models/analytic/event.rb', line 20 def self.distinct_sessions_count count('DISTINCT "analytic_events"."session_id"') end |
.distinct_visitors_count ⇒ Integer
15 16 17 |
# File 'app/models/analytic/event.rb', line 15 def self.distinct_visitors_count count('DISTINCT "analytic_events"."visitor_id"') end |