Class: Dallal::Notifiers::Notifier
- Inherits:
-
Object
- Object
- Dallal::Notifiers::Notifier
show all
- Includes:
- AbstractInterface
- Defined in:
- lib/dallal/notifiers/notifier.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
included
Constructor Details
#initialize(notification) ⇒ Notifier
Returns a new instance of Notifier.
9
10
11
|
# File 'lib/dallal/notifiers/notifier.rb', line 9
def initialize(notification)
@notification = notification
end
|
Instance Attribute Details
#notification ⇒ Object
Returns the value of attribute notification.
6
7
8
|
# File 'lib/dallal/notifiers/notifier.rb', line 6
def notification
@notification
end
|
Class Method Details
.email(notification) ⇒ Object
13
14
15
|
# File 'lib/dallal/notifiers/notifier.rb', line 13
def self.email(notification)
Dallal::Notifiers::EmailNotifier.new(notification)
end
|
.sms(notification) ⇒ Object
17
18
19
|
# File 'lib/dallal/notifiers/notifier.rb', line 17
def self.sms(notification)
Dallal::Notifiers::SmsNotifier.new(notification)
end
|
Instance Method Details
#notify!(*args) ⇒ Object
21
22
23
|
# File 'lib/dallal/notifiers/notifier.rb', line 21
def notify!(*args)
Notifier.api_not_implemented(self)
end
|
#persist! ⇒ Object
25
26
27
|
# File 'lib/dallal/notifiers/notifier.rb', line 25
def persist!
Notifier.api_not_implemented(self)
end
|