Class: BestBoy::BestBoyEventsController

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/best_boy/best_boy_events_controller.rb

Instance Method Summary collapse

Instance Method Details

#chartsObject



36
37
38
# File 'app/controllers/best_boy/best_boy_events_controller.rb', line 36

def charts
  build_chart
end

#detailsObject



24
25
26
27
28
29
# File 'app/controllers/best_boy/best_boy_events_controller.rb', line 24

def details
  collect_occurrences
  collect_occurrences_grouped_by_sources
  collect_occurrences_for_selected_year_of current_event
  selected_year_totals
end

#monthly_detailsObject



31
32
33
34
# File 'app/controllers/best_boy/best_boy_events_controller.rb', line 31

def monthly_details
  collect_occurrences_for_month current_month
  monthly_details_chart
end

#statsObject



17
18
19
20
21
22
# File 'app/controllers/best_boy/best_boy_events_controller.rb', line 17

def stats
  collect_occurrences
  collect_occurrences_for_selected_year
  available_events_totals
  selected_year_totals
end