Class: DingSDK::SDKHooks::BeforeRequestHookContext
- Inherits:
-
HookContext
- Object
- HookContext
- DingSDK::SDKHooks::BeforeRequestHookContext
- Extended by:
- T::Sig
- Defined in:
- lib/ding_sdk/sdk_hooks/types.rb
Instance Attribute Summary
Attributes inherited from HookContext
#base_url, #oauth2_scopes, #operation_id, #security_source
Instance Method Summary collapse
-
#initialize(hook_ctx:) ⇒ BeforeRequestHookContext
constructor
A new instance of BeforeRequestHookContext.
Constructor Details
#initialize(hook_ctx:) ⇒ BeforeRequestHookContext
Returns a new instance of BeforeRequestHookContext.
49 50 51 52 53 54 55 56 |
# File 'lib/ding_sdk/sdk_hooks/types.rb', line 49 def initialize(hook_ctx:) super( base_url: hook_ctx.base_url, operation_id: hook_ctx.operation_id, oauth2_scopes: hook_ctx.oauth2_scopes, security_source: hook_ctx.security_source ) end |