Class: JWT::ClaimsValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/jwt/claims_validator.rb

Instance Method Summary collapse

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