Class: TokenHawk::DashboardController

Inherits:
ApplicationController show all
Defined in:
app/controllers/token_hawk/dashboard_controller.rb

Instance Method Summary collapse

Instance Method Details

#index ⇒ Object



5
6
7
8
9
10
# File 'app/controllers/token_hawk/dashboard_controller.rb', line 5

def index
  query = DashboardQuery.new(since: Time.now.beginning_of_month)
  @monthly_total = query.monthly_total
  @top_domains   = query.top_domains
  @daily_costs   = query.daily_costs
end