Class: ActionHook::Security::Authentication::Token

Inherits:
Base
  • Object
show all
Defined in:
lib/actionhook/security/authentication.rb

Direct Known Subclasses

BearerToken

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_h

Constructor Details

#initialize(token) ⇒ Token

Returns a new instance of Token.



17
18
19
# File 'lib/actionhook/security/authentication.rb', line 17

def initialize(token)
  @token = token
end

Instance Attribute Details

#tokenObject

Returns the value of attribute token.



16
17
18
# File 'lib/actionhook/security/authentication.rb', line 16

def token
  @token
end

Instance Method Details

#header_valueObject



21
22
23
# File 'lib/actionhook/security/authentication.rb', line 21

def header_value
  "Token #{token}"
end