Class: Ticket::Reports::Comped
- Inherits:
-
Base
- Object
- Base
- Ticket::Reports::Comped
show all
- Defined in:
- app/models/ticket/reports.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize, reporting_methods
Instance Method Details
#played ⇒ Object
70
71
72
|
# File 'app/models/ticket/reports.rb', line 70
def played
tickets.comped.played.count
end
|
#today ⇒ Object
66
67
68
|
# File 'app/models/ticket/reports.rb', line 66
def today
tickets.comped.sold_after(Time.now.beginning_of_day).count
end
|
#total ⇒ Object
62
63
64
|
# File 'app/models/ticket/reports.rb', line 62
def total
tickets.select(&:comped?).length
end
|