Class: Ticket::Reports::Sold

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



56
57
58
# File 'app/models/ticket/reports.rb', line 56

def played
  tickets.sold.played.count
end

#todayObject



52
53
54
# File 'app/models/ticket/reports.rb', line 52

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

#totalObject



48
49
50
# File 'app/models/ticket/reports.rb', line 48

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