Exception: Segmentor::Errors::NotificationError
- Inherits:
-
StandardError
- Object
- StandardError
- Segmentor::Errors::NotificationError
- Defined in:
- lib/segmentor/errors/notification_error.rb
Overview
NotificationError can be raised by a notification block to indicate that the notification should not be sent.
Instance Attribute Summary collapse
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target) ⇒ NotificationError
constructor
A new instance of NotificationError.
Constructor Details
#initialize(target) ⇒ NotificationError
Returns a new instance of NotificationError.
10 11 12 13 |
# File 'lib/segmentor/errors/notification_error.rb', line 10 def initialize(target) @target = target super('Notification error') end |
Instance Attribute Details
#target ⇒ Object (readonly)
Returns the value of attribute target.
8 9 10 |
# File 'lib/segmentor/errors/notification_error.rb', line 8 def target @target end |