Class: MailHandler::Receiving::IMAPChecker
- Defined in:
- lib/mailhandler/receiving/imap.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#authentication ⇒ Object
Returns the value of attribute authentication.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#use_ssl ⇒ Object
Returns the value of attribute use_ssl.
-
#username ⇒ Object
Returns the value of attribute username.
Attributes inherited from Checker
#available_search_options, #found_emails, #search_options
Instance Method Summary collapse
- #find(options) ⇒ Object
-
#initialize ⇒ IMAPChecker
constructor
A new instance of IMAPChecker.
- #start ⇒ Object
- #stop ⇒ Object
Methods inherited from Checker
#reset_found_emails, #search_result
Constructor Details
#initialize ⇒ IMAPChecker
Returns a new instance of IMAPChecker.
20 21 22 23 24 25 |
# File 'lib/mailhandler/receiving/imap.rb', line 20 def initialize super @available_search_options = AVAILABLE_SEARCH_OPTIONS end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
13 14 15 |
# File 'lib/mailhandler/receiving/imap.rb', line 13 def address @address end |
#authentication ⇒ Object
Returns the value of attribute authentication.
13 14 15 |
# File 'lib/mailhandler/receiving/imap.rb', line 13 def authentication @authentication end |
#password ⇒ Object
Returns the value of attribute password.
13 14 15 |
# File 'lib/mailhandler/receiving/imap.rb', line 13 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
13 14 15 |
# File 'lib/mailhandler/receiving/imap.rb', line 13 def port @port end |
#use_ssl ⇒ Object
Returns the value of attribute use_ssl.
13 14 15 |
# File 'lib/mailhandler/receiving/imap.rb', line 13 def use_ssl @use_ssl end |
#username ⇒ Object
Returns the value of attribute username.
13 14 15 |
# File 'lib/mailhandler/receiving/imap.rb', line 13 def username @username end |
Instance Method Details
#find(options) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/mailhandler/receiving/imap.rb', line 27 def find() () @found_emails = find_emails() search_result end |
#start ⇒ Object
36 37 38 39 40 41 |
# File 'lib/mailhandler/receiving/imap.rb', line 36 def start init_retriever connect end |
#stop ⇒ Object
43 44 45 46 47 |
# File 'lib/mailhandler/receiving/imap.rb', line 43 def stop disconnect end |