Exception: OAuth::InsufficientTokenScopeError

Inherits:
OAuthError
  • Object
show all
Defined in:
app/services/oauth.rb

Overview

Request Access token scope insufficient.

Instance Attribute Summary collapse

Attributes inherited from OAuthError

#code

Instance Method Summary collapse

Constructor Details

#initialize(scopes) ⇒ InsufficientTokenScopeError


50
51
52
53
# File 'app/services/oauth.rb', line 50

def initialize(scopes)
  @scopes = scopes
  super :insufficient_token_scope, "The access token dosen't have the scope of this request."
end

Instance Attribute Details

#scopesObject (readonly)

Returns the value of attribute scopes


49
50
51
# File 'app/services/oauth.rb', line 49

def scopes
  @scopes
end