Class: IMAPProcessor::Connection
- Inherits:
-
Struct
- Object
- Struct
- IMAPProcessor::Connection
- Defined in:
- lib/imap_processor.rb
Overview
A Connection Struct that has imap
and capability
accessors
Instance Attribute Summary collapse
-
#capability ⇒ Object
Returns the value of attribute capability.
-
#imap ⇒ Object
Returns the value of attribute imap.
Instance Method Summary collapse
-
#idle? ⇒ Boolean
Does this connection support the IDLE extension?.
-
#uidplus? ⇒ Boolean
Does this connection support the UIDPLUS extension?.
Instance Attribute Details
#capability ⇒ Object
Returns the value of attribute capability
42 43 44 |
# File 'lib/imap_processor.rb', line 42 def capability @capability end |
#imap ⇒ Object
Returns the value of attribute imap
42 43 44 |
# File 'lib/imap_processor.rb', line 42 def imap @imap end |
Instance Method Details
#idle? ⇒ Boolean
Does this connection support the IDLE extension?
47 48 49 |
# File 'lib/imap_processor.rb', line 47 def idle? capability.include? 'IDLE' end |
#uidplus? ⇒ Boolean
Does this connection support the UIDPLUS extension?
54 55 56 |
# File 'lib/imap_processor.rb', line 54 def uidplus? capability.include? 'UIDPLUS' end |