Class: FireJWT::Token

Inherits:
Hash
  • Object
show all
Defined in:
lib/firejwt.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#headerObject (readonly)

Returns the value of attribute header.



6
7
8
# File 'lib/firejwt.rb', line 6

def header
  @header
end