Class: Force::Middleware
- Inherits:
-
Faraday::Middleware
- Object
- Faraday::Middleware
- Force::Middleware
- Defined in:
- lib/force/middleware.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Authentication, Authorization, Caching, Gzip, InstanceURL, Logger, Mashify, Multipart, RaiseError
Instance Method Summary collapse
-
#client ⇒ Object
Internal: Proxy to the client.
-
#connection ⇒ Object
Internal: Proxy to the client’s faraday connection.
-
#initialize(app, client, options) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app, client, options) ⇒ Middleware
Returns a new instance of Middleware.
13 14 15 |
# File 'lib/force/middleware.rb', line 13 def initialize(app, client, ) @app, @client, @options = app, client, end |
Instance Method Details
#client ⇒ Object
Internal: Proxy to the client.
18 19 20 |
# File 'lib/force/middleware.rb', line 18 def client @client end |
#connection ⇒ Object
Internal: Proxy to the client’s faraday connection.
23 24 25 |
# File 'lib/force/middleware.rb', line 23 def connection client.send(:connection) end |