Class: Ticket::Reports::Comped

Inherits:
Base
  • Object
show all
Defined in:
app/models/ticket/reports.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, reporting_methods

Constructor Details

This class inherits a constructor from Ticket::Reports::Base

Instance Method Details

#playedObject



70
71
72
# File 'app/models/ticket/reports.rb', line 70

def played
  tickets.comped.played.count
end

#todayObject



66
67
68
# File 'app/models/ticket/reports.rb', line 66

def today
  tickets.comped.sold_after(Time.now.beginning_of_day).count
end

#totalObject



62
63
64
# File 'app/models/ticket/reports.rb', line 62

def total
  tickets.select(&:comped?).length
end