Class: FireJWT::Token
- Inherits:
-
Hash
- Object
- Hash
- FireJWT::Token
- Defined in:
- lib/firejwt.rb
Instance Attribute Summary collapse
-
#header ⇒ Object
readonly
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize(payload, header) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(payload, header) ⇒ Token
Returns a new instance of Token.
8 9 10 11 12 |
# File 'lib/firejwt.rb', line 8 def initialize(payload, header) super() update(payload) @header = header end |
Instance Attribute Details
#header ⇒ Object (readonly)
Returns the value of attribute header.
6 7 8 |
# File 'lib/firejwt.rb', line 6 def header @header end |