Class: TwoCaptcha::Captcha
- Defined in:
- lib/two_captcha/models/captcha.rb
Overview
Model of a Captcha returned by ZeroCaptcha API.
Instance Attribute Summary collapse
-
#api_response ⇒ Object
Returns the value of attribute api_response.
-
#id ⇒ Object
Returns the value of attribute id.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Methods inherited from Model
Constructor Details
This class inherits a constructor from TwoCaptcha::Model
Instance Attribute Details
#api_response ⇒ Object
Returns the value of attribute api_response.
5 6 7 |
# File 'lib/two_captcha/models/captcha.rb', line 5 def api_response @api_response end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/two_captcha/models/captcha.rb', line 5 def id @id end |
#text ⇒ Object
Returns the value of attribute text.
5 6 7 |
# File 'lib/two_captcha/models/captcha.rb', line 5 def text @text end |
Instance Method Details
#indexes ⇒ Object
7 8 9 |
# File 'lib/two_captcha/models/captcha.rb', line 7 def indexes text.gsub('click:', '').split(/[^0-9]/).map(&:to_i) end |