class Rack::Auth::Travis::DIYAuthenticator
Public Class Methods
new(authenticator_block)
click to toggle source
# File lib/rack/auth/travis.rb, line 66 def initialize(authenticator_block) @authenticator_block = authenticator_block end
Public Instance Methods
valid?(auth_req)
click to toggle source
# File lib/rack/auth/travis.rb, line 70 def valid?(auth_req) @authenticator_block.call(auth_req.repo_slug, auth_req.token) end