Exception: Clacky::Channel::Adapters::Feishu::FeishuScopeError
- Inherits:
-
StandardError
- Object
- StandardError
- Clacky::Channel::Adapters::Feishu::FeishuScopeError
- Defined in:
- lib/clacky/server/channel/adapters/feishu/bot.rb
Overview
Raised when any API call fails with 99991672 (missing app scope). The admin needs to open auth_url to grant the required permissions.
Instance Attribute Summary collapse
-
#auth_url ⇒ Object
readonly
Returns the value of attribute auth_url.
-
#required_scopes ⇒ Object
readonly
Returns the value of attribute required_scopes.
Instance Method Summary collapse
-
#initialize(auth_url, required_scopes: []) ⇒ FeishuScopeError
constructor
A new instance of FeishuScopeError.
Constructor Details
#initialize(auth_url, required_scopes: []) ⇒ FeishuScopeError
Returns a new instance of FeishuScopeError.
39 40 41 42 43 |
# File 'lib/clacky/server/channel/adapters/feishu/bot.rb', line 39 def initialize(auth_url, required_scopes: []) @auth_url = auth_url @required_scopes = required_scopes super("App is missing required API scope") end |
Instance Attribute Details
#auth_url ⇒ Object (readonly)
Returns the value of attribute auth_url.
37 38 39 |
# File 'lib/clacky/server/channel/adapters/feishu/bot.rb', line 37 def auth_url @auth_url end |
#required_scopes ⇒ Object (readonly)
Returns the value of attribute required_scopes.
37 38 39 |
# File 'lib/clacky/server/channel/adapters/feishu/bot.rb', line 37 def required_scopes @required_scopes end |