Sha256: 18604f6b059db38c9f4123629365f827102e46f56b1ce8b7af46ab45889477d4

Contents?: true

Size: 356 Bytes

Versions: 6

Compression:

Stored size: 356 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
    @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

Version Path
mail_engine-0.1.8 app/controllers/mail_engine/dashboard_controller.rb
mail_engine-0.1.7 app/controllers/mail_engine/dashboard_controller.rb
mail_engine-0.1.6 app/controllers/mail_engine/dashboard_controller.rb
mail_engine-0.1.5 app/controllers/mail_engine/dashboard_controller.rb
mail_engine-0.1.4 app/controllers/mail_engine/dashboard_controller.rb
mail_engine-0.1.3 app/controllers/mail_engine/dashboard_controller.rb