Class: AhoyCaptain::Stats::BaseController

Inherits:
ApplicationController show all
Defined in:
app/controllers/ahoy_captain/stats/base_controller.rb

Constant Summary collapse

INTERVAL_PERIOD =
{
  "realtime" => ["minute"],
  "day" => ["minute", "hour"],
  "7d" => ["hour", "day"],
  "month" => ["day", "week"],
  "all" => ["day", "week", "month"]
}
INTERVALS =
["minute", "hour", "day", "week", "month"]

Method Summary

Methods inherited from ApplicationController

#period

Methods included from Rangeable

#period

Methods included from CompareMode

#compare_mode?, #comparison_mode, included