Class: Clerk::SDKHooks::HookContext
- Inherits:
-
Object
- Object
- Clerk::SDKHooks::HookContext
- Defined in:
- lib/clerk/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.
29 30 31 32 33 34 35 |
# File 'lib/clerk/sdk_hooks/types.rb', line 29 def initialize(config:, base_url:, oauth2_scopes:, operation_id:, security_source:) @config = config @base_url = base_url @oauth2_scopes = oauth2_scopes @operation_id = operation_id @security_source = security_source end |
Instance Attribute Details
#base_url ⇒ Object
Returns the value of attribute base_url.
17 18 19 |
# File 'lib/clerk/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/clerk/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/clerk/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/clerk/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/clerk/sdk_hooks/types.rb', line 26 def security_source @security_source end |