Class: VisualCaptcha::Option
- Inherits:
-
Object
- Object
- VisualCaptcha::Option
- Defined in:
- lib/visualcaptcha.rb
Instance Attribute Summary collapse
-
#encrypted ⇒ Object
Returns the value of attribute encrypted.
-
#id ⇒ Object
Returns the value of attribute id.
-
#image ⇒ Object
Returns the value of attribute image.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(id, image, title) ⇒ Option
constructor
A new instance of Option.
Constructor Details
#initialize(id, image, title) ⇒ Option
Returns a new instance of Option.
17 18 19 20 21 22 |
# File 'lib/visualcaptcha.rb', line 17 def initialize(id, image, title) @id = id @image = image @title = title @encrypted = VisualCaptcha::Utils.generate_key(id) end |
Instance Attribute Details
#encrypted ⇒ Object
Returns the value of attribute encrypted.
15 16 17 |
# File 'lib/visualcaptcha.rb', line 15 def encrypted @encrypted end |
#id ⇒ Object
Returns the value of attribute id.
15 16 17 |
# File 'lib/visualcaptcha.rb', line 15 def id @id end |
#image ⇒ Object
Returns the value of attribute image.
15 16 17 |
# File 'lib/visualcaptcha.rb', line 15 def image @image end |
#title ⇒ Object
Returns the value of attribute title.
15 16 17 |
# File 'lib/visualcaptcha.rb', line 15 def title @title end |