Class: FastCaptcha::Challenge
- Inherits:
-
Object
- Object
- FastCaptcha::Challenge
- Defined in:
- lib/fastcaptcha.rb
Instance Attribute Summary collapse
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key, image) ⇒ Challenge
constructor
A new instance of Challenge.
Constructor Details
#initialize(key, image) ⇒ Challenge
Returns a new instance of Challenge.
50 51 52 |
# File 'lib/fastcaptcha.rb', line 50 def initialize key, image @key, @image = key, image end |
Instance Attribute Details
#image ⇒ Object (readonly)
Returns the value of attribute image.
49 50 51 |
# File 'lib/fastcaptcha.rb', line 49 def image @image end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
49 50 51 |
# File 'lib/fastcaptcha.rb', line 49 def key @key end |