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
40
41
42
|
# File 'app/models/ticket/reports.rb', line 40
def played
tickets.sold.played.count
end
|
#today ⇒ Object
36
37
38
|
# File 'app/models/ticket/reports.rb', line 36
def today
tickets.sold_after(Time.now.beginning_of_day).count
end
|
#total ⇒ Object
32
33
34
|
# File 'app/models/ticket/reports.rb', line 32
def total
tickets.select(&:sold?).length
end
|