Module: MList::Manager
- Included in:
- Database
- Defined in:
- lib/mlist/manager.rb,
lib/mlist/manager/database.rb,
lib/mlist/manager/notifier.rb
Overview
The interface of list managers.
A module is provided instead of a base class to allow implementors to subclass whatever they like. Practically speaking, they can create an ActiveRecord subclass.
Defined Under Namespace
Instance Method Summary collapse
-
#lists(email) ⇒ Object
Answers an enumeration of MList::List implementations to which the given email should be published.
-
#notifier ⇒ Object
Answers the MList::Manager::Notifier of this list manager.
Instance Method Details
#lists(email) ⇒ Object
Answers an enumeration of MList::List implementations to which the given email should be published.
16 17 18 |
# File 'lib/mlist/manager.rb', line 16 def lists(email) raise 'implement in your list manager' end |
#notifier ⇒ Object
Answers the MList::Manager::Notifier of this list manager. Includers of this module may initialize the @notifier instance variable with their own implementation/subclass to generate custom content for the different notices.
25 26 27 |
# File 'lib/mlist/manager.rb', line 25 def notifier @notifier ||= MList::Manager::Notifier.new end |