Faraday::Response::Middleware
Parse dates from response body
# File lib/faraday_middleware/response/parse_dates.rb, line 9 def initialize(app, options = {}) @regexp = options[:match] || ISO_DATE_FORMAT super(app) end
# File lib/faraday_middleware/response/parse_dates.rb, line 14 def call(env) response = @app.call(env) parse_dates! response.env[:body] response end
[Validate]
Generated with the Darkfish Rdoc Generator 2.