Class: Washbullet::Authorization

Inherits:
Faraday::Request::Authorization
  • Object
show all
Defined in:
lib/washbullet/authorization.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/washbullet/authorization.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