Class: Revent::Captcha

Inherits:
Object show all
Defined in:
lib/revent/captcha.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(encrypted_code_with_timestamp, img) ⇒ Captcha

Returns a new instance of Captcha.



9
10
11
12
# File 'lib/revent/captcha.rb', line 9

def initialize(encrypted_code_with_timestamp, img)
  @encrypted_code_with_timestamp = encrypted_code_with_timestamp
  @img = img
end

Instance Attribute Details

#encrypted_code_with_timestampObject (readonly)

Returns the value of attribute encrypted_code_with_timestamp.



7
8
9
# File 'lib/revent/captcha.rb', line 7

def encrypted_code_with_timestamp
  @encrypted_code_with_timestamp
end

#imgObject (readonly)

Returns the value of attribute img.



7
8
9
# File 'lib/revent/captcha.rb', line 7

def img
  @img
end