Class: ErrorReady::AsyncSender

Inherits:
Object
  • Object
show all
Defined in:
lib/error_ready/notifiers/async_sender.rb

Instance Method Summary collapse

Constructor Details

#initialize(formatted_error) ⇒ AsyncSender

Returns a new instance of AsyncSender.



3
4
5
# File 'lib/error_ready/notifiers/async_sender.rb', line 3

def initialize(formatted_error)
  @error = formatted_error
end

Instance Method Details

#callObject



7
8
9
# File 'lib/error_ready/notifiers/async_sender.rb', line 7

def call
  SyncSender.new(@error).async.call
end