Exception: Tikkie::Api::AuthenticationException
- Defined in:
- lib/tikkie/api/exception.rb
Overview
Exception when the authentication fails.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ AuthenticationException
constructor
A new instance of AuthenticationException.
Constructor Details
#initialize(response) ⇒ AuthenticationException
Returns a new instance of AuthenticationException.
13 14 15 16 17 18 19 |
# File 'lib/tikkie/api/exception.rb', line 13 def initialize(response) @response = response @body = response.body = "Authentication failure at Tikkie" super() end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
11 12 13 |
# File 'lib/tikkie/api/exception.rb', line 11 def body @body end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
11 12 13 |
# File 'lib/tikkie/api/exception.rb', line 11 def response @response end |