Class: JWT::Claims::Numeric::Compat
- Inherits:
-
Object
- Object
- JWT::Claims::Numeric::Compat
- Defined in:
- lib/jwt/claims/numeric.rb
Instance Method Summary collapse
-
#initialize(payload) ⇒ Compat
constructor
A new instance of Compat.
- #verify! ⇒ Object
Constructor Details
#initialize(payload) ⇒ Compat
Returns a new instance of Compat.
7 8 9 |
# File 'lib/jwt/claims/numeric.rb', line 7 def initialize(payload) @payload = payload end |
Instance Method Details
#verify! ⇒ Object
11 12 13 |
# File 'lib/jwt/claims/numeric.rb', line 11 def verify! JWT::Claims.verify_payload!(@payload, :numeric) end |