Class: Recoil::Email
- Inherits:
-
Struct
- Object
- Struct
- Recoil::Email
- Defined in:
- lib/recoil/email.rb
Instance Attribute Summary collapse
-
#bounces ⇒ Object
Returns the value of attribute bounces.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#bounces ⇒ Object
Returns the value of attribute bounces
2 3 4 |
# File 'lib/recoil/email.rb', line 2 def bounces @bounces end |
Class Method Details
.blacklisted?(email) ⇒ Boolean
3 4 5 |
# File 'lib/recoil/email.rb', line 3 def self.blacklisted?(email) new(Bounce.where(email: email).count).blacklisted? end |
Instance Method Details
#blacklisted? ⇒ Boolean
7 8 9 |
# File 'lib/recoil/email.rb', line 7 def blacklisted? Recoil.blacklist_threshold.call(self) end |