Class: FastCaptcha::Challenge

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#imageObject (readonly)

Returns the value of attribute image.



49
50
51
# File 'lib/fastcaptcha.rb', line 49

def image
  @image
end

#keyObject (readonly)

Returns the value of attribute key.



49
50
51
# File 'lib/fastcaptcha.rb', line 49

def key
  @key
end