Module: AxialNotifier

Extended by:
AxialNotifier
Included in:
AxialNotifier
Defined in:
lib/axial_notifier.rb,
lib/axial_notifier/sender.rb,
lib/axial_notifier/catcher.rb,
lib/axial_notifier/configuration.rb

Defined Under Namespace

Modules: Catcher Classes: Configuration, Sender

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configurationObject

Returns the value of attribute configuration.



10
11
12
# File 'lib/axial_notifier.rb', line 10

def configuration
  @configuration
end

#senderObject

Returns the value of attribute sender.



10
11
12
# File 'lib/axial_notifier.rb', line 10

def sender
  @sender
end

Instance Method Details

#configure {|self.configuration ||= Configuration.new| ... } ⇒ Object

Yields:



12
13
14
# File 'lib/axial_notifier.rb', line 12

def configure
  yield(self.configuration ||= Configuration.new)
end

#log(exception) ⇒ Object



16
17
18
19
# File 'lib/axial_notifier.rb', line 16

def log(exception)
  self.sender ||= Sender.new(self.configuration)
  self.sender.log(exception)
end