Class: VisualCaptcha::Option

Inherits:
Object
  • Object
show all
Defined in:
lib/visualcaptcha.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#encryptedObject

Returns the value of attribute encrypted.



15
16
17
# File 'lib/visualcaptcha.rb', line 15

def encrypted
  @encrypted
end

#idObject

Returns the value of attribute id.



15
16
17
# File 'lib/visualcaptcha.rb', line 15

def id
  @id
end

#imageObject

Returns the value of attribute image.



15
16
17
# File 'lib/visualcaptcha.rb', line 15

def image
  @image
end

#titleObject

Returns the value of attribute title.



15
16
17
# File 'lib/visualcaptcha.rb', line 15

def title
  @title
end