Class: Gitlab::Auth::InsufficientScopeError

Inherits:
AuthenticationError
  • Object
show all
Defined in:
lib/gitlab/auth/auth_finders.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scopes) ⇒ InsufficientScopeError

Returns a new instance of InsufficientScopeError.


15
16
17
# File 'lib/gitlab/auth/auth_finders.rb', line 15

def initialize(scopes)
  @scopes = scopes.map { |s| s.try(:name) || s }
end

Instance Attribute Details

#scopesObject (readonly)

Returns the value of attribute scopes


14
15
16
# File 'lib/gitlab/auth/auth_finders.rb', line 14

def scopes
  @scopes
end