Sha256: 83e8dd35f9ddd0b781c82fd67e7d599b1d959f91fe9a18d7528300f6517f8d50
Contents?: true
Size: 409 Bytes
Versions: 6
Compression:
Stored size: 409 Bytes
Contents
class MailEngine::DashboardController < MailEngine::ApplicationController def index @pie_chart_columns = ["bounces", "unique_opens", "spamreports", "blocks", "unopened"] @data_of_today = MailEngine::Sendgrid::RestApi.stats # unopened data needs you calculate by yourself. @data_of_today.merge!("unopened" => (@data_of_today["delivered"].to_i - @data_of_today["unique_opens"].to_i)) end end
Version data entries
6 entries across 6 versions & 1 rubygems