Exception: CoachClient::Unauthorized
- Defined in:
- lib/coach_client/exceptions.rb
Overview
The error that the user is not authorized to see the resource.
Instance Attribute Summary collapse
-
#user ⇒ CoachClient::User
readonly
Returns the user that encountered the error.
Instance Method Summary collapse
Constructor Details
#initialize(user = nil) ⇒ CoachClient::Unauthorized
59 60 61 |
# File 'lib/coach_client/exceptions.rb', line 59 def initialize(user = nil) @user = user end |
Instance Attribute Details
#user ⇒ CoachClient::User (readonly)
Returns the user that encountered the error.
55 56 57 |
# File 'lib/coach_client/exceptions.rb', line 55 def user @user end |