class Testcloud::Billing::Authentication

Public Class Methods

new(app, options={}) click to toggle source
# File lib/testcloud/billing/authentication.rb, line 5
def initialize(app, options={})
  @app = app
  @options = options
end

Public Instance Methods

call(env) click to toggle source
# File lib/testcloud/billing/authentication.rb, line 10
def call(env)
  env[:request_headers]["X-Testcloud-Token"] = @options[:api_key]
  @app.call(env)
end