Class: ZeroCaptcha::Captcha

Inherits:
Model
  • Object
show all
Defined in:
lib/zero_captcha/models/captcha.rb

Overview

Model of a Captcha returned by ZeroCaptcha API.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Model

#initialize

Constructor Details

This class inherits a constructor from ZeroCaptcha::Model

Instance Attribute Details

#codeObject

Returns the value of attribute code.



5
6
7
# File 'lib/zero_captcha/models/captcha.rb', line 5

def code
  @code
end

#correctObject Also known as: correct?

Returns the value of attribute correct.



5
6
7
# File 'lib/zero_captcha/models/captcha.rb', line 5

def correct
  @correct
end

#created_atObject

Returns the value of attribute created_at.



5
6
7
# File 'lib/zero_captcha/models/captcha.rb', line 5

def created_at
  @created_at
end

#created_at_not_parsedObject

Returns the value of attribute created_at_not_parsed.



5
6
7
# File 'lib/zero_captcha/models/captcha.rb', line 5

def created_at_not_parsed
  @created_at_not_parsed
end

#duration_in_millisecondsObject Also known as: duration

Returns the value of attribute duration_in_milliseconds.



5
6
7
# File 'lib/zero_captcha/models/captcha.rb', line 5

def duration_in_milliseconds
  @duration_in_milliseconds
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/zero_captcha/models/captcha.rb', line 5

def id
  @id
end

#textObject

Returns the value of attribute text.



5
6
7
# File 'lib/zero_captcha/models/captcha.rb', line 5

def text
  @text
end