Sha256: 6dbf544e04b7b243603eacce77749bd5aa083e1e6b8b93582c2c8cbf794d1505

Contents?: true

Size: 261 Bytes

Versions: 2

Compression:

Stored size: 261 Bytes

Contents

module Washbullet
  class BasicAuthentication < Faraday::Request::BasicAuthentication
    def call(env)
      if env.url.to_s.match(Washbullet::Client::ENDPOINT)
        env.request_headers[KEY] = @header_value
      end

      @app.call(env)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
washbullet-0.3.1 lib/washbullet/basic_authentication.rb
washbullet-0.3.0 lib/washbullet/basic_authentication.rb