Class: Force::Middleware

Inherits:
Faraday::Middleware
  • Object
show all
Defined in:
lib/force/middleware.rb

Direct Known Subclasses

Authentication, Authorization, Gzip, InstanceURL, Mashify

Defined Under Namespace

Classes: Authentication, Authorization, Caching, Gzip, InstanceURL, Logger, Mashify, Multipart, RaiseError

Instance Method Summary collapse

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, options)
  @app, @client, @options = app, client, options
end

Instance Method Details

#clientObject

Internal: Proxy to the client.



18
19
20
# File 'lib/force/middleware.rb', line 18

def client
  @client
end

#connectionObject

Internal: Proxy to the client’s faraday connection.



23
24
25
# File 'lib/force/middleware.rb', line 23

def connection
  client.send(:connection)
end