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
54
55
56
|
# File 'app/models/ticket/reports.rb', line 54
def played
tickets.comped.played.count
end
|
#today ⇒ Object
50
51
52
|
# File 'app/models/ticket/reports.rb', line 50
def today
tickets.comped.sold_after(Time.now.beginning_of_day).count
end
|
#total ⇒ Object
46
47
48
|
# File 'app/models/ticket/reports.rb', line 46
def total
tickets.select(&:comped?).length
end
|