Exception: Segmentor::Errors::NotificationError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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

#targetObject (readonly)

Returns the value of attribute target.



8
9
10
# File 'lib/segmentor/errors/notification_error.rb', line 8

def target
  @target
end