Class: MailHandler::Receiving::FileList::Filter::Base
- Inherits:
-
Object
- Object
- MailHandler::Receiving::FileList::Filter::Base
- Defined in:
- lib/mailhandler/receiving/filelist/filter/base.rb
Overview
base filter for files
Direct Known Subclasses
MailHandler::Receiving::FileList::Filter::ByDate::BaseDate, MailHandler::Receiving::FileList::Filter::ByDate::Before, Email
Instance Attribute Summary collapse
-
#fast_check ⇒ Object
Returns the value of attribute fast_check.
-
#files ⇒ Object
Returns the value of attribute files.
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(files) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(files) ⇒ Base
Returns a new instance of Base.
16 17 18 |
# File 'lib/mailhandler/receiving/filelist/filter/base.rb', line 16 def initialize(files) @files = files end |
Instance Attribute Details
#fast_check ⇒ Object
Returns the value of attribute fast_check.
14 15 16 |
# File 'lib/mailhandler/receiving/filelist/filter/base.rb', line 14 def fast_check @fast_check end |
#files ⇒ Object
Returns the value of attribute files.
14 15 16 |
# File 'lib/mailhandler/receiving/filelist/filter/base.rb', line 14 def files @files end |
Instance Method Details
#get ⇒ Object
20 21 22 |
# File 'lib/mailhandler/receiving/filelist/filter/base.rb', line 20 def get files.select { |file| ignore_exception { meets_expectation?(file) } } end |