class Ey::Core::TokenAuthentication
Attributes
token[R]
Public Class Methods
new(app, token)
click to toggle source
Calls superclass method
# File lib/ey-core/token_authentication.rb, line 4 def initialize(app, token) super(app) @token = token end
Public Instance Methods
call(env)
click to toggle source
Calls superclass method
# File lib/ey-core/token_authentication.rb, line 9 def call(env) env[:request_headers]["X-EY-TOKEN"] = token super end