Exception: Gettc::AuthTokenError
- Inherits:
-
DownloadError
- Object
- StandardError
- DownloadError
- Gettc::AuthTokenError
- Defined in:
- lib/gettc/download.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#server_response ⇒ Object
Returns the value of attribute server_response.
Instance Method Summary collapse
-
#initialize(account, server_response, message = "Failed to acquire an OAuth token") ⇒ AuthTokenError
constructor
A new instance of AuthTokenError.
Constructor Details
#initialize(account, server_response, message = "Failed to acquire an OAuth token") ⇒ AuthTokenError
Returns a new instance of AuthTokenError.
44 45 46 47 48 |
# File 'lib/gettc/download.rb', line 44 def initialize(account, server_response, = "Failed to acquire an OAuth token") @account = account @server_response = server_response super "#{}\nAccount: #{@account}\nServer Response:\n#{JSON.pretty_generate(server_response)}" end |
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
42 43 44 |
# File 'lib/gettc/download.rb', line 42 def account @account end |
#server_response ⇒ Object
Returns the value of attribute server_response.
42 43 44 |
# File 'lib/gettc/download.rb', line 42 def server_response @server_response end |