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

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

Direct Known Subclasses

RequestSigner

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Base.



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

def initialize(app,options={},&escher_keydb_constructor)

  super(app)
  @host = options[:host] || Socket.gethostname

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

end