Class: Recaptcha::Verify::VerifyResultError

Inherits:
VerifyResult 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 VerifyResult

#hostname_valid?

Constructor Details

#initialize(error_message) ⇒ VerifyResultError


80
81
82
83
# File 'lib/recaptcha/verify/verify_result.rb', line 80

def initialize(error_message)
  super(nil, nil)
  @errors = [error_message]
end

Instance Method Details

#valid?Boolean


85
86
87
# File 'lib/recaptcha/verify/verify_result.rb', line 85

def valid?
  false
end