Exception: Clickwrap::VerificationFailed

Inherits:
Error
  • Object
show all
Defined in:
lib/clickwrap/errors.rb

Overview

Raised by the bang verification methods. Always carries the same structured result the non-bang Clickwrap.verify would have returned, so applications never parse an English message to make an authorization decision.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result) ⇒ VerificationFailed

Returns a new instance of VerificationFailed.



128
129
130
131
# File 'lib/clickwrap/errors.rb', line 128

def initialize(result)
  @result = result
  super(result.message)
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



126
127
128
# File 'lib/clickwrap/errors.rb', line 126

def result
  @result
end

Instance Method Details

#errorObject



133
# File 'lib/clickwrap/errors.rb', line 133

def error = result.error