Exception: CoachClient::Unauthorized

Inherits:
Exception
  • Object
show all
Defined in:
lib/coach_client/exceptions.rb

Overview

The error that the user is not authorized to see the resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user = nil) ⇒ CoachClient::Unauthorized

Parameters:



59
60
61
# File 'lib/coach_client/exceptions.rb', line 59

def initialize(user = nil)
  @user = user
end

Instance Attribute Details

#userCoachClient::User (readonly)

Returns the user that encountered the error.

Returns:



55
56
57
# File 'lib/coach_client/exceptions.rb', line 55

def user
  @user
end