Class: Gitlab::Auth::InsufficientScopeError
- Inherits:
-
AuthenticationError
- Object
- Gitlab::Auth::InsufficientScopeError
- Defined in:
- lib/gitlab/auth/auth_finders.rb
Instance Attribute Summary collapse
-
#scopes ⇒ Object
readonly
Returns the value of attribute scopes.
Instance Method Summary collapse
-
#initialize(scopes) ⇒ InsufficientScopeError
constructor
A new instance of InsufficientScopeError.
Constructor Details
#initialize(scopes) ⇒ InsufficientScopeError
Returns a new instance of InsufficientScopeError.
30 31 32 |
# File 'lib/gitlab/auth/auth_finders.rb', line 30 def initialize(scopes) @scopes = scopes.map { |s| s.try(:name) || s } end |
Instance Attribute Details
#scopes ⇒ Object (readonly)
Returns the value of attribute scopes.
28 29 30 |
# File 'lib/gitlab/auth/auth_finders.rb', line 28 def scopes @scopes end |