Class: BounceFetcher::BounceDetector

Inherits:
Object
  • Object
show all
Defined in:
lib/bounce_fetcher/bounce_detector.rb

Instance Method Summary collapse

Instance Method Details

#permanent_bounce?(email) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
10
# File 'lib/bounce_fetcher/bounce_detector.rb', line 7

def permanent_bounce?(email)
  bounce = BounceEmail::Mail.new(email)
  bounce.isbounce && bounce.type == "Permanent Failure"
end