Class: ActionHook::Security::Authentication::Token
- Defined in:
- lib/actionhook/security/authentication.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
- #header_value ⇒ Object
-
#initialize(token) ⇒ Token
constructor
A new instance of Token.
Methods inherited from Base
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
#token ⇒ Object
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_value ⇒ Object
21 22 23 |
# File 'lib/actionhook/security/authentication.rb', line 21 def header_value "Token #{token}" end |