Class: EdemRedirects::Decoder
- Inherits:
-
Object
- Object
- EdemRedirects::Decoder
- Defined in:
- lib/edem_redirects/decoder.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(token) ⇒ Decoder
constructor
A new instance of Decoder.
Constructor Details
#initialize(token) ⇒ Decoder
5 6 7 |
# File 'lib/edem_redirects/decoder.rb', line 5 def initialize(token) @token = token end |
Instance Method Details
#call ⇒ Object
9 10 11 |
# File 'lib/edem_redirects/decoder.rb', line 9 def call JWT.decode @token, nil, false end |