Class: Qup::Adapter::Maildir
- Inherits:
-
Qup::Adapter
- Object
- Qup::Adapter
- Qup::Adapter::Maildir
- Defined in:
- lib/qup/adapter/maildir.rb,
lib/qup/adapter/maildir/queue.rb,
lib/qup/adapter/maildir/topic.rb
Overview
Internal: The backing adapter for Qup that uses Maildir as the messaging infrastructure
Defined Under Namespace
Instance Method Summary collapse
-
#close ⇒ Object
Internal: Close the Maildir adapter.
-
#closed? ⇒ Boolean
Internal: Is the Maildir Adapter closed.
-
#initialize(uri, options = {}) ⇒ Maildir
constructor
Internal: Create a new Maildir Adapter.
-
#queue(name) ⇒ Object
Internal: Create a new Queue from this Adapter.
-
#topic(name) ⇒ Object
Internal: Create a new Topic from this Adapter.
Methods inherited from Qup::Adapter
Constructor Details
#initialize(uri, options = {}) ⇒ Maildir
Internal: Create a new Maildir Adapter
uri - the URI instance for this adapter to use
15 16 17 18 19 20 |
# File 'lib/qup/adapter/maildir.rb', line 15 def initialize( uri, = {} ) @uri = uri @options = @root_path = uri.path @closed = false end |
Instance Method Details
#close ⇒ Object
Internal: Close the Maildir adapter
Return nothing
43 44 45 |
# File 'lib/qup/adapter/maildir.rb', line 43 def close @closed = true end |
#closed? ⇒ Boolean
Internal: Is the Maildir Adapter closed
Returns true or false
50 51 52 |
# File 'lib/qup/adapter/maildir.rb', line 50 def closed? @closed end |