Class: AhoyCaptain::Stats::TotalVisitorsQuery
- Inherits:
-
BaseQuery
- Object
- ApplicationQuery
- BaseQuery
- AhoyCaptain::Stats::TotalVisitorsQuery
- Defined in:
- app/queries/ahoy_captain/stats/total_visitors_query.rb
Instance Attribute Summary
Attributes inherited from ApplicationQuery
Instance Method Summary collapse
Methods included from LazyComparableQuery
Methods included from ComparableQuery
Methods inherited from ApplicationQuery
call, inherited, #initialize, #inspect
Constructor Details
This class inherits a constructor from AhoyCaptain::ApplicationQuery
Instance Method Details
#build ⇒ Object
4 5 6 |
# File 'app/queries/ahoy_captain/stats/total_visitors_query.rb', line 4 def build visit_query.distinct.select(:id) end |