Class: Washbullet::BasicAuthentication
- Inherits:
-
Faraday::Request::BasicAuthentication
- Object
- Faraday::Request::BasicAuthentication
- Washbullet::BasicAuthentication
- Defined in:
- lib/washbullet/basic_authentication.rb
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/washbullet/basic_authentication.rb', line 3 def call(env) if env.url.to_s.match(Washbullet::Client::ENDPOINT) env.request_headers[KEY] = @header_value end @app.call(env) end |