Exception: Gettc::AuthTokenError

Inherits:
DownloadError show all
Defined in:
lib/gettc/download.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(, server_response, message = "Failed to acquire an OAuth token")
  @account = 
  @server_response = server_response
  super "#{message}\nAccount: #{@account}\nServer Response:\n#{JSON.pretty_generate(server_response)}"
end

Instance Attribute Details

#accountObject

Returns the value of attribute account.



42
43
44
# File 'lib/gettc/download.rb', line 42

def 
  @account
end

#server_responseObject

Returns the value of attribute server_response.



42
43
44
# File 'lib/gettc/download.rb', line 42

def server_response
  @server_response
end