Class: Restforce::Middleware
- Inherits:
-
Faraday::Middleware
- Object
- Faraday::Middleware
- Restforce::Middleware
- Defined in:
- lib/restforce/middleware.rb
Overview
Base class that all middleware can extend. Provides some convenient helper functions.
Direct Known Subclasses
Defined Under Namespace
Classes: Authentication, Authorization, Caching, InstanceURL, Logger, Mashify, Multipart, RaiseError
Instance Method Summary collapse
- #client ⇒ Object
- #connection ⇒ Object
-
#initialize(app, client, options) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app, client, options) ⇒ Middleware
Returns a new instance of Middleware.
7 8 9 10 11 |
# File 'lib/restforce/middleware.rb', line 7 def initialize(app, client, ) @app = app @client = client @options = end |
Instance Method Details
#client ⇒ Object
13 14 15 |
# File 'lib/restforce/middleware.rb', line 13 def client @client end |
#connection ⇒ Object
17 18 19 |
# File 'lib/restforce/middleware.rb', line 17 def connection client.send(:connection) end |