Class: Altcha::V2::VerifySolutionResult
- Inherits:
-
Object
- Object
- Altcha::V2::VerifySolutionResult
- Defined in:
- lib/altcha/v2.rb
Overview
Detailed result returned by V2.verify_solution.
Instance Attribute Summary collapse
-
#expired ⇒ Object
Returns the value of attribute expired.
-
#invalid_signature ⇒ Object
Returns the value of attribute invalid_signature.
-
#invalid_solution ⇒ Object
Returns the value of attribute invalid_solution.
-
#time ⇒ Object
Returns the value of attribute time.
-
#verified ⇒ Object
Returns the value of attribute verified.
Instance Method Summary collapse
-
#initialize(expired:, invalid_signature:, invalid_solution:, time:, verified:) ⇒ VerifySolutionResult
constructor
A new instance of VerifySolutionResult.
Constructor Details
#initialize(expired:, invalid_signature:, invalid_solution:, time:, verified:) ⇒ VerifySolutionResult
Returns a new instance of VerifySolutionResult.
153 154 155 156 157 158 159 |
# File 'lib/altcha/v2.rb', line 153 def initialize(expired:, invalid_signature:, invalid_solution:, time:, verified:) @expired = expired @invalid_signature = invalid_signature @invalid_solution = invalid_solution @time = time @verified = verified end |
Instance Attribute Details
#expired ⇒ Object
Returns the value of attribute expired.
151 152 153 |
# File 'lib/altcha/v2.rb', line 151 def expired @expired end |
#invalid_signature ⇒ Object
Returns the value of attribute invalid_signature.
151 152 153 |
# File 'lib/altcha/v2.rb', line 151 def invalid_signature @invalid_signature end |
#invalid_solution ⇒ Object
Returns the value of attribute invalid_solution.
151 152 153 |
# File 'lib/altcha/v2.rb', line 151 def invalid_solution @invalid_solution end |
#time ⇒ Object
Returns the value of attribute time.
151 152 153 |
# File 'lib/altcha/v2.rb', line 151 def time @time end |
#verified ⇒ Object
Returns the value of attribute verified.
151 152 153 |
# File 'lib/altcha/v2.rb', line 151 def verified @verified end |