Class: ErrorReady::AsyncSender
- Inherits:
-
Object
- Object
- ErrorReady::AsyncSender
- Defined in:
- lib/error_ready/notifiers/async_sender.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(formatted_error) ⇒ AsyncSender
constructor
A new instance of AsyncSender.
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
#call ⇒ Object
7 8 9 |
# File 'lib/error_ready/notifiers/async_sender.rb', line 7 def call SyncSender.new(@error).async.call end |