Class: MultiNotifier::Adapter
- Inherits:
-
Object
- Object
- MultiNotifier::Adapter
- Includes:
- ActiveModel::Model
- Defined in:
- lib/multi_notifier/model.rb,
lib/multi_notifier/adapter.rb
Direct Known Subclasses
Defined Under Namespace
Modules: ActiveModel
Instance Method Summary collapse
Methods included from ActiveModel::Model
included, #initialize, #persisted?
Instance Method Details
#notify ⇒ Object
8 9 10 |
# File 'lib/multi_notifier/adapter.rb', line 8 def notify raise "Implement #{self.class.name}#notify" end |
#notify! ⇒ Object
12 13 14 15 16 |
# File 'lib/multi_notifier/adapter.rb', line 12 def notify! raise error_msg(errors.) unless valid? notify end |