Class: Decaptcha::Provider::DeathByCaptcha::Base
- Defined in:
- lib/decaptcha/provider/death_by_captcha/base.rb
Instance Attribute Summary collapse
-
#login ⇒ Object
Returns the value of attribute login.
-
#password ⇒ Object
Returns the value of attribute password.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Base
constructor
A new instance of Base.
Methods inherited from Base
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
#login ⇒ Object
Returns the value of attribute login.
5 6 7 |
# File 'lib/decaptcha/provider/death_by_captcha/base.rb', line 5 def login @login end |
#password ⇒ Object
Returns the value of attribute password.
6 7 8 |
# File 'lib/decaptcha/provider/death_by_captcha/base.rb', line 6 def password @password end |
#timeout ⇒ Object
Returns the value of attribute timeout.
7 8 9 |
# File 'lib/decaptcha/provider/death_by_captcha/base.rb', line 7 def timeout @timeout end |