class PayPoint::Blue::BodyExtractor

Faraday middleware which extracts the body from the response object and returns with just that discarding all other meta information.

Public Instance Methods

call(env) click to toggle source

Extract and return just the body discarding everything else

# File lib/paypoint/blue/body_extractor.rb, line 8
def call(env)
  response = @app.call(env)
  response.env[:body]
end