Class: Ticket::Reports::Sold
- Inherits:
-
Base
- Object
- Base
- Ticket::Reports::Sold
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
56
57
58
|
# File 'app/models/ticket/reports.rb', line 56
def played
tickets.sold.played.count
end
|
#today ⇒ Object
52
53
54
|
# File 'app/models/ticket/reports.rb', line 52
def today
tickets.sold_after(Time.now.beginning_of_day).count
end
|
#total ⇒ Object
48
49
50
|
# File 'app/models/ticket/reports.rb', line 48
def total
tickets.select(&:sold?).length
end
|