class Nimbu::Request::SiteHeader

Public Class Methods

new(app, *args) click to toggle source
Calls superclass method
# File lib/nimbu-api/request/site_header.rb, line 14
def initialize(app, *args)
  super app
  @app = app
  @subdomain = args.shift
end

Public Instance Methods

call(env) click to toggle source
# File lib/nimbu-api/request/site_header.rb, line 9
def call(env)
  env[:request_headers].merge!(NIMBU_SITE => @subdomain) if @subdomain
  @app.call env
end