Method: Msg::Sending#statistics

Defined in:
app/models/msg/sending.rb

#statisticsObject



13
14
15
16
17
18
19
# File 'app/models/msg/sending.rb', line 13

def statistics
  sent = envelopes.count || 0
  bounced = envelopes.bounced.count || 0
  read = envelopes.opened.count || 0
  unread = sent-read-bounced
  [unread, read, bounced]
end