Sha256: c818e96608ad71af86012ec2e9a6331ff1066298d4ad1ada21abc57f5053118b
Contents?: true
Size: 404 Bytes
Versions: 4
Compression:
Stored size: 404 Bytes
Contents
class MailEngine::DashboardController < MailEngine::ApplicationController def index @pie_chart_columns = ["bounces", "unique_opens", "spamreports", "blocks", "unopened"] @stats_data = MailEngine::Sendgrid::RestApi.stats(:days => 6) @data_of_today = @stats_data.last @data_of_today.merge!("unopened" => (@data_of_today["delivered"].to_i - @data_of_today["unique_opens"].to_i)) end end
Version data entries
4 entries across 4 versions & 1 rubygems