Class: MathCaptcha::Challenge
- Inherits:
-
Object
- Object
- MathCaptcha::Challenge
- Defined in:
- lib/math_captcha.rb
Instance Attribute Summary collapse
-
#answer ⇒ Object
Returns the value of attribute answer.
-
#encrypted ⇒ Object
Returns the value of attribute encrypted.
-
#options ⇒ Object
Returns the value of attribute options.
-
#question ⇒ Object
Returns the value of attribute question.
Instance Method Summary collapse
-
#initialize(question, answer, encrypted, options = nil) ⇒ Challenge
constructor
A new instance of Challenge.
Constructor Details
#initialize(question, answer, encrypted, options = nil) ⇒ Challenge
Returns a new instance of Challenge.
12 13 14 15 16 17 |
# File 'lib/math_captcha.rb', line 12 def initialize(question, answer, encrypted, =nil) @question = question @answer = answer @encrypted = encrypted = end |
Instance Attribute Details
#answer ⇒ Object
Returns the value of attribute answer.
10 11 12 |
# File 'lib/math_captcha.rb', line 10 def answer @answer end |
#encrypted ⇒ Object
Returns the value of attribute encrypted.
10 11 12 |
# File 'lib/math_captcha.rb', line 10 def encrypted @encrypted end |
#options ⇒ Object
Returns the value of attribute options.
10 11 12 |
# File 'lib/math_captcha.rb', line 10 def end |
#question ⇒ Object
Returns the value of attribute question.
10 11 12 |
# File 'lib/math_captcha.rb', line 10 def question @question end |