Class: ZendeskAPI::Middleware::Response::ParseIsoDates

Inherits:
Faraday::Response::Middleware
  • Object
show all
Defined in:
lib/zendesk_api/middleware/response/parse_iso_dates.rb

Overview

Parse ISO dates from response body

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object


10
11
12
13
14
# File 'lib/zendesk_api/middleware/response/parse_iso_dates.rb', line 10

def call(env)
  @app.call(env).on_complete do |env|
    parse_dates!(env[:body])
  end
end