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.
16 17 18 |
# File 'lib/gitlab/auth/auth_finders.rb', line 16 def initialize(scopes) @scopes = scopes.map { |s| s.try(:name) || s } end |
Instance Attribute Details
#scopes ⇒ Object (readonly)
Returns the value of attribute scopes.
14 15 16 |
# File 'lib/gitlab/auth/auth_finders.rb', line 14 def scopes @scopes end |