Class: Faraday::Middleware::Escher::Base

Inherits:
Faraday::Middleware
  • Object
show all
Defined in:
lib/faraday/middleware/escher/base.rb

Direct Known Subclasses

RequestSigner, ResponseValidator

Instance Method Summary collapse

Constructor Details

#initialize(app, options = {}) ⇒ Base

Returns a new instance of Base.



4
5
6
7
8
9
10
11
12
# File 'lib/faraday/middleware/escher/base.rb', line 4

def initialize(app,options={})

  super(app)
  @host = options[:host]

  @escher_options = options[:options] || {}
  @escher_credential_scope = options[:credential_scope] || raise(ArgumentError,'missing escher credential scope!')

end