Class: Recaptcha::Verify::ResponseTokenTooLongErrorResult

Inherits:
VerifyResultError show all
Defined in:
lib/recaptcha/verify/verify_result.rb

Instance Attribute Summary

Attributes inherited from VerifyResult

#errors, #response

Instance Method Summary collapse

Methods inherited from VerifyResultError

#valid?

Methods inherited from VerifyResult

#hostname_valid?, #valid?

Constructor Details

#initialize(length) ⇒ ResponseTokenTooLongErrorResult


97
98
99
100
# File 'lib/recaptcha/verify/verify_result.rb', line 97

def initialize(length)
  max_length = G_RESPONSE_LIMIT
  super("response token was too long (#{length} > #{max_length})")
end