Class: Mailtrap::EmailCampaignStats
- Inherits:
-
Struct
- Object
- Struct
- Mailtrap::EmailCampaignStats
- Defined in:
- lib/mailtrap/email_campaign.rb
Overview
Data Transfer Object for Email Campaign Stats
Aggregated campaign performance metrics. All counts and rates are 0 when the
campaign has not been started.
Instance Attribute Summary collapse
-
#bounce_count ⇒ Integer
readonly
Number of bounced messages.
-
#bounce_rate ⇒ Float
readonly
Share of sent messages that bounced (0–1).
-
#click_count ⇒ Integer
readonly
Number of clicked messages.
-
#click_rate ⇒ Float
readonly
Share of delivered messages that were clicked (0–1).
-
#delivery_count ⇒ Integer
readonly
Number of delivered messages.
-
#delivery_rate ⇒ Float
readonly
Share of sent messages that were delivered (0–1).
-
#open_count ⇒ Integer
readonly
Number of opened messages.
-
#open_rate ⇒ Float
readonly
Share of delivered messages that were opened (0–1).
-
#sent_count ⇒ Integer
readonly
Number of sent messages.
-
#spam_count ⇒ Integer
readonly
Number of spam complaints.
-
#spam_rate ⇒ Float
readonly
Share of sent messages marked as spam (0–1).
-
#unsubscription_count ⇒ Integer
readonly
Number of unsubscriptions.
-
#unsubscription_rate ⇒ Float
readonly
Share of delivered messages that unsubscribed (0–1).
Instance Attribute Details
#bounce_count ⇒ Integer (readonly)
Number of bounced messages
22 23 24 |
# File 'lib/mailtrap/email_campaign.rb', line 22 def bounce_count @bounce_count end |
#bounce_rate ⇒ Float (readonly)
Share of sent messages that bounced (0–1)
22 23 24 |
# File 'lib/mailtrap/email_campaign.rb', line 22 def bounce_rate @bounce_rate end |
#click_count ⇒ Integer (readonly)
Number of clicked messages
22 23 24 |
# File 'lib/mailtrap/email_campaign.rb', line 22 def click_count @click_count end |
#click_rate ⇒ Float (readonly)
Share of delivered messages that were clicked (0–1)
22 23 24 |
# File 'lib/mailtrap/email_campaign.rb', line 22 def click_rate @click_rate end |
#delivery_count ⇒ Integer (readonly)
Number of delivered messages
22 23 24 |
# File 'lib/mailtrap/email_campaign.rb', line 22 def delivery_count @delivery_count end |
#delivery_rate ⇒ Float (readonly)
Share of sent messages that were delivered (0–1)
22 23 24 |
# File 'lib/mailtrap/email_campaign.rb', line 22 def delivery_rate @delivery_rate end |
#open_count ⇒ Integer (readonly)
Number of opened messages
22 23 24 |
# File 'lib/mailtrap/email_campaign.rb', line 22 def open_count @open_count end |
#open_rate ⇒ Float (readonly)
Share of delivered messages that were opened (0–1)
22 23 24 |
# File 'lib/mailtrap/email_campaign.rb', line 22 def open_rate @open_rate end |
#sent_count ⇒ Integer (readonly)
Number of sent messages
22 23 24 |
# File 'lib/mailtrap/email_campaign.rb', line 22 def sent_count @sent_count end |
#spam_count ⇒ Integer (readonly)
Number of spam complaints
22 23 24 |
# File 'lib/mailtrap/email_campaign.rb', line 22 def spam_count @spam_count end |
#spam_rate ⇒ Float (readonly)
Share of sent messages marked as spam (0–1)
22 23 24 |
# File 'lib/mailtrap/email_campaign.rb', line 22 def spam_rate @spam_rate end |
#unsubscription_count ⇒ Integer (readonly)
Number of unsubscriptions
22 23 24 |
# File 'lib/mailtrap/email_campaign.rb', line 22 def unsubscription_count @unsubscription_count end |
#unsubscription_rate ⇒ Float (readonly)
Share of delivered messages that unsubscribed (0–1)
22 23 24 |
# File 'lib/mailtrap/email_campaign.rb', line 22 def unsubscription_rate @unsubscription_rate end |