class Restforce::Middleware
Base class that all middleware can extend. Provides some convenient helper functions.
Public Class Methods
new(app, client, options)
click to toggle source
Calls superclass method
# File lib/restforce/middleware.rb, line 18 def initialize(app, client, options) super(app) @app = app @client = client @options = options end
Public Instance Methods
client()
click to toggle source
Internal: Proxy to the client.
# File lib/restforce/middleware.rb, line 27 def client @client end
connection()
click to toggle source
Internal: Proxy to the client’s faraday connection.
# File lib/restforce/middleware.rb, line 32 def connection client.send(:connection) end