Class: AchClient::Logging::SavonObserver
- Inherits:
-
Object
- Object
- AchClient::Logging::SavonObserver
- Defined in:
- lib/ach_client/logging/savon_observer.rb
Overview
Hooks into every savon request. #notify is called before the request is made
Instance Method Summary collapse
-
#notify(operation_name, builder, _globals, _locals) ⇒ NilClass
Hooks into every SOAP request and sends the XML body to be logged.
Instance Method Details
#notify(operation_name, builder, _globals, _locals) ⇒ NilClass
Hooks into every SOAP request and sends the XML body to be logged.
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/ach_client/logging/savon_observer.rb', line 14 def notify(operation_name, builder, _globals, _locals) # Send the xml body to the logger job AchClient::Logging::LogProviderJob.perform_async( body: builder.to_s, name: "request-#{operation_name}-#{DateTime.now}.xml" ) # Must return nil so the request is unaltered nil end |