Class: Autoreply::Scanner
- Inherits:
-
Object
- Object
- Autoreply::Scanner
- Defined in:
- lib/autoreply/scanner.rb
Defined Under Namespace
Classes: Base, Headers, MicrosoftOutlook, Sender, Subject
Instance Attribute Summary collapse
-
#mail ⇒ Object
readonly
Returns the value of attribute mail.
Instance Method Summary collapse
- #autoreply? ⇒ Boolean
-
#initialize(mail) ⇒ Scanner
constructor
A new instance of Scanner.
Constructor Details
#initialize(mail) ⇒ Scanner
Returns a new instance of Scanner.
5 6 7 |
# File 'lib/autoreply/scanner.rb', line 5 def initialize(mail) @mail = mail end |
Instance Attribute Details
#mail ⇒ Object (readonly)
Returns the value of attribute mail.
3 4 5 |
# File 'lib/autoreply/scanner.rb', line 3 def mail @mail end |
Instance Method Details
#autoreply? ⇒ Boolean
9 10 11 12 13 14 |
# File 'lib/autoreply/scanner.rb', line 9 def autoreply? sender_scanner.autoreply? || subject_scanner.autoreply? || headers_scanner.autoreply? || microsoft_outlook_scanner.autoreply? end |