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

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

Instance Method Summary collapse

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