Class: AhoyCaptain::Stats::UniqueVisitorsQuery

Inherits:
BaseQuery show all
Defined in:
app/queries/ahoy_captain/stats/unique_visitors_query.rb

Instance Attribute Summary

Attributes inherited from ApplicationQuery

#params

Instance Method Summary collapse

Methods included from LazyComparableQuery

#with_lazy_comparison

Methods included from ComparableQuery

#with_comparison

Methods inherited from ApplicationQuery

call, inherited, #initialize, #inspect

Constructor Details

This class inherits a constructor from AhoyCaptain::ApplicationQuery

Instance Method Details

#buildObject



4
5
6
# File 'app/queries/ahoy_captain/stats/unique_visitors_query.rb', line 4

def build
  visit_query.distinct.select(:visitor_token)
end