class Ur::Faraday::YieldUr

Faraday middleware which yields an Ur to the given block

Public Class Methods

new(app, **options, &block) click to toggle source
Calls superclass method Ur::Middleware::new
# File lib/ur/faraday/yield_ur.rb, line 7
def initialize(app, **options, &block)
  raise(ArgumentError, "no block given to yield ur") unless block
  super(app, options.merge(after_response: block))
end