Class: Faraday::Middleware::Escher::Base
- Inherits:
-
Faraday::Middleware
- Object
- Faraday::Middleware
- Faraday::Middleware::Escher::Base
- Defined in:
- lib/faraday/middleware/escher/base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(app, options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(app, options = {}) ⇒ Base
Returns a new instance of Base.
5 6 7 8 9 10 11 12 13 |
# File 'lib/faraday/middleware/escher/base.rb', line 5 def initialize(app,={}) super(app) @host = [:host] || Socket.gethostname = [:options] || {} @escher_credential_scope = [:credential_scope] || raise(ArgumentError,'missing escher credential scope!') end |