Class: KintsugiSDK::SDKHooks::HookContext
- Inherits:
-
Object
- Object
- KintsugiSDK::SDKHooks::HookContext
- Extended by:
- T::Sig
- Defined in:
- lib/kintsugi_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.
-
#config ⇒ Object
Returns the value of attribute config.
-
#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(config:, base_url:, oauth2_scopes:, operation_id:, security_source:) ⇒ HookContext
constructor
A new instance of HookContext.
Constructor Details
#initialize(config:, base_url:, oauth2_scopes:, operation_id:, security_source:) ⇒ HookContext
Returns a new instance of HookContext.
37 38 39 40 41 42 43 |
# File 'lib/kintsugi_sdk/sdk_hooks/types.rb', line 37 def initialize(config:, base_url:, oauth2_scopes:, operation_id:, security_source:) @config = T.let(config, SDKConfiguration) @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.
17 18 19 |
# File 'lib/kintsugi_sdk/sdk_hooks/types.rb', line 17 def base_url @base_url end |
#config ⇒ Object
Returns the value of attribute config.
14 15 16 |
# File 'lib/kintsugi_sdk/sdk_hooks/types.rb', line 14 def config @config end |
#oauth2_scopes ⇒ Object
Returns the value of attribute oauth2_scopes.
20 21 22 |
# File 'lib/kintsugi_sdk/sdk_hooks/types.rb', line 20 def oauth2_scopes @oauth2_scopes end |
#operation_id ⇒ Object
Returns the value of attribute operation_id.
23 24 25 |
# File 'lib/kintsugi_sdk/sdk_hooks/types.rb', line 23 def operation_id @operation_id end |
#security_source ⇒ Object
Returns the value of attribute security_source.
26 27 28 |
# File 'lib/kintsugi_sdk/sdk_hooks/types.rb', line 26 def security_source @security_source end |