Class: ZeroCaptcha::Captcha
- Defined in:
- lib/zero_captcha/models/captcha.rb
Overview
Model of a Captcha returned by ZeroCaptcha API.
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#correct ⇒ Object
(also: #correct?)
Returns the value of attribute correct.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#created_at_not_parsed ⇒ Object
Returns the value of attribute created_at_not_parsed.
-
#duration_in_milliseconds ⇒ Object
(also: #duration)
Returns the value of attribute duration_in_milliseconds.
-
#id ⇒ Object
Returns the value of attribute id.
-
#text ⇒ Object
Returns the value of attribute text.
Method Summary
Methods inherited from Model
Constructor Details
This class inherits a constructor from ZeroCaptcha::Model
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
5 6 7 |
# File 'lib/zero_captcha/models/captcha.rb', line 5 def code @code end |
#correct ⇒ Object 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_at ⇒ Object
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_parsed ⇒ Object
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_milliseconds ⇒ Object 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 |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/zero_captcha/models/captcha.rb', line 5 def id @id end |
#text ⇒ Object
Returns the value of attribute text.
5 6 7 |
# File 'lib/zero_captcha/models/captcha.rb', line 5 def text @text end |