Class: PollterGeist::ImapIdler::IdleResult
- Inherits:
-
Object
- Object
- PollterGeist::ImapIdler::IdleResult
- Defined in:
- lib/pollter_geist/imap_idler.rb
Instance Method Summary collapse
- #event ⇒ Object
-
#initialize(success, event) ⇒ IdleResult
constructor
A new instance of IdleResult.
- #success? ⇒ Boolean
- #timeout? ⇒ Boolean
Constructor Details
#initialize(success, event) ⇒ IdleResult
Returns a new instance of IdleResult.
7 8 9 10 |
# File 'lib/pollter_geist/imap_idler.rb', line 7 def initialize success, event @success = success @event = event end |
Instance Method Details
#event ⇒ Object
20 21 22 |
# File 'lib/pollter_geist/imap_idler.rb', line 20 def event @event end |
#success? ⇒ Boolean
12 13 14 |
# File 'lib/pollter_geist/imap_idler.rb', line 12 def success? @success end |
#timeout? ⇒ Boolean
16 17 18 |
# File 'lib/pollter_geist/imap_idler.rb', line 16 def timeout? @event == 'TIMEOUT' end |