Exception: AdsCommon::Errors::CaptchaRequiredError

Inherits:
AuthError
  • Object
show all
Defined in:
lib/ads_common/errors.rb

Overview

Raised when ClientLogin Captcha challenge occurs.

Instance Attribute Summary collapse

Attributes inherited from AuthError

#info

Instance Method Summary collapse

Constructor Details

#initialize(error, captcha_token, captcha_url, auth_url) ⇒ CaptchaRequiredError

Returns a new instance of CaptchaRequiredError.



55
56
57
58
59
# File 'lib/ads_common/errors.rb', line 55

def initialize(error, captcha_token, captcha_url, auth_url)
  super()
  @error, @captcha_token  = error, captcha_token
  @captcha_url, @auth_url = captcha_url, auth_url
end

Instance Attribute Details

#auth_urlObject (readonly)

Returns the value of attribute auth_url.



54
55
56
# File 'lib/ads_common/errors.rb', line 54

def auth_url
  @auth_url
end

#captcha_tokenObject (readonly)

Returns the value of attribute captcha_token.



53
54
55
# File 'lib/ads_common/errors.rb', line 53

def captcha_token
  @captcha_token
end

#captcha_urlObject (readonly)

Returns the value of attribute captcha_url.



54
55
56
# File 'lib/ads_common/errors.rb', line 54

def captcha_url
  @captcha_url
end

#errorObject (readonly)

Returns the value of attribute error.



53
54
55
# File 'lib/ads_common/errors.rb', line 53

def error
  @error
end