class Frodo::Middleware

Base class that all middleware can extend. Provides some convenient helper functions.

Public Class Methods

new(app, client, options) click to toggle source
# File lib/frodo/middleware.rb, line 17
def initialize(app, client, options)
  @app = app
  @client = client
  @options = options
end

Public Instance Methods

client() click to toggle source

Internal: Proxy to the client.

# File lib/frodo/middleware.rb, line 24
def client
  @client
end
connection() click to toggle source

Internal: Proxy to the client's faraday connection.

# File lib/frodo/middleware.rb, line 29
def connection
  client.send(:connection)
end