Class: Bocu::Middleware::Parser

Inherits:
Faraday::Response::Middleware
  • Object
show all
Defined in:
lib/bocu/middleware/parser.rb

Constant Summary collapse

DATA_KEYS =
%i[coubs channels].freeze

Instance Method Summary collapse

Instance Method Details

#on_complete(env) ⇒ Object



6
7
8
# File 'lib/bocu/middleware/parser.rb', line 6

def on_complete(env)
  env[:body] = parse(env[:body])
end