Class: Decaptcha::Provider::DeathByCaptcha::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/decaptcha/provider/death_by_captcha/base.rb

Direct Known Subclasses

HTTP, Socket

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#mime_type

Constructor Details

#initialize(args = {}) ⇒ Base

Returns a new instance of Base.



9
10
11
12
13
# File 'lib/decaptcha/provider/death_by_captcha/base.rb', line 9

def initialize(args = {})
  @login    = args[:login]
  @password = args[:password]
  @timeout  = args[:timeout] ? args[:timeout] : '120' # seconds
end

Instance Attribute Details

#loginObject

Returns the value of attribute login.



5
6
7
# File 'lib/decaptcha/provider/death_by_captcha/base.rb', line 5

def 
  @login
end

#passwordObject

Returns the value of attribute password.



6
7
8
# File 'lib/decaptcha/provider/death_by_captcha/base.rb', line 6

def password
  @password
end

#timeoutObject

Returns the value of attribute timeout.



7
8
9
# File 'lib/decaptcha/provider/death_by_captcha/base.rb', line 7

def timeout
  @timeout
end