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