Class: JWT::Claims::Numeric::Compat Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

The Compat class provides backward compatibility for numeric claim validation.

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ Compat

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Compat.



11
12
13
# File 'lib/jwt/claims/numeric.rb', line 11

def initialize(payload)
  @payload = payload
end

Instance Method Details

#verify!Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



15
16
17
# File 'lib/jwt/claims/numeric.rb', line 15

def verify!
  JWT::Claims.verify_payload!(@payload, :numeric)
end