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



54
55
56
# File 'app/models/ticket/reports.rb', line 54

def played
  tickets.comped.played.count
end

#todayObject



50
51
52
# File 'app/models/ticket/reports.rb', line 50

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

#totalObject



46
47
48
# File 'app/models/ticket/reports.rb', line 46

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