Class: MailerLite::Middleware::UnderscoreKeys

Inherits:
Faraday::Middleware
  • Object
show all
Defined in:
lib/mailerlite/middleware/underscore_keys.rb

Overview

This class will underscore all response keys from CamelCase.

Instance Method Summary collapse

Instance Method Details

#on_complete(response) ⇒ Object



7
8
9
# File 'lib/mailerlite/middleware/underscore_keys.rb', line 7

def on_complete(response)
  response[:body] = updated_response(response[:body])
end