Class: DingSDK::SDKHooks::HookContext
- Inherits:
-
Object
- Object
- DingSDK::SDKHooks::HookContext
- Extended by:
- T::Sig
- Defined in:
- lib/ding_sdk/sdk_hooks/types.rb
Direct Known Subclasses
AfterErrorHookContext, AfterSuccessHookContext, BeforeRequestHookContext
Instance Attribute Summary collapse
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#oauth2_scopes ⇒ Object
Returns the value of attribute oauth2_scopes.
-
#operation_id ⇒ Object
Returns the value of attribute operation_id.
-
#security_source ⇒ Object
Returns the value of attribute security_source.
Instance Method Summary collapse
-
#initialize(base_url:, oauth2_scopes:, operation_id:, security_source:) ⇒ HookContext
constructor
A new instance of HookContext.
Constructor Details
#initialize(base_url:, oauth2_scopes:, operation_id:, security_source:) ⇒ HookContext
Returns a new instance of HookContext.
33 34 35 36 37 38 |
# File 'lib/ding_sdk/sdk_hooks/types.rb', line 33 def initialize(base_url:, oauth2_scopes:, operation_id:, security_source:) @base_url = T.let(base_url, String) @oauth2_scopes = T.let(oauth2_scopes, T.nilable(T::Array[String])) @operation_id = T.let(operation_id, String) @security_source = T.let(security_source, T.nilable(T.proc.returns(T.untyped))) end |
Instance Attribute Details
#base_url ⇒ Object
Returns the value of attribute base_url.
14 15 16 |
# File 'lib/ding_sdk/sdk_hooks/types.rb', line 14 def base_url @base_url end |
#oauth2_scopes ⇒ Object
Returns the value of attribute oauth2_scopes.
17 18 19 |
# File 'lib/ding_sdk/sdk_hooks/types.rb', line 17 def oauth2_scopes @oauth2_scopes end |
#operation_id ⇒ Object
Returns the value of attribute operation_id.
20 21 22 |
# File 'lib/ding_sdk/sdk_hooks/types.rb', line 20 def operation_id @operation_id end |
#security_source ⇒ Object
Returns the value of attribute security_source.
23 24 25 |
# File 'lib/ding_sdk/sdk_hooks/types.rb', line 23 def security_source @security_source end |