Class: Paseto::Token
- Inherits:
-
Struct
- Object
- Struct
- Paseto::Token
- Defined in:
- lib/paseto/token.rb
Instance Attribute Summary collapse
-
#footer ⇒ Object
Returns the value of attribute footer.
-
#header ⇒ Object
Returns the value of attribute header.
-
#payload ⇒ Object
Returns the value of attribute payload.
Instance Method Summary collapse
Instance Attribute Details
#footer ⇒ Object
Returns the value of attribute footer
5 6 7 |
# File 'lib/paseto/token.rb', line 5 def @footer end |
#header ⇒ Object
Returns the value of attribute header
5 6 7 |
# File 'lib/paseto/token.rb', line 5 def header @header end |
#payload ⇒ Object
Returns the value of attribute payload
5 6 7 |
# File 'lib/paseto/token.rb', line 5 def payload @payload end |
Instance Method Details
#to_message ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/paseto/token.rb', line 6 def = [ header, Paseto.encode64(payload) ] << Paseto.encode64() if && != EMPTY_FOOTER .join('.') end |