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.



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

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.



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

def auth_url
  @auth_url
end

#captcha_tokenObject (readonly)

Returns the value of attribute captcha_token.



51
52
53
# File 'lib/ads_common/errors.rb', line 51

def captcha_token
  @captcha_token
end

#captcha_urlObject (readonly)

Returns the value of attribute captcha_url.



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

def captcha_url
  @captcha_url
end

#errorObject (readonly)

Returns the value of attribute error.



51
52
53
# File 'lib/ads_common/errors.rb', line 51

def error
  @error
end