Class: CldProvisioning::SDKHooks::HookContext
- Inherits:
-
Object
- Object
- CldProvisioning::SDKHooks::HookContext
- Extended by:
- T::Sig
- Defined in:
- lib/cld_provisioning/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.
39 40 41 42 43 44 45 |
# File 'lib/cld_provisioning/sdk_hooks/types.rb', line 39 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.
18 19 20 |
# File 'lib/cld_provisioning/sdk_hooks/types.rb', line 18 def base_url @base_url end |
#config ⇒ Object
Returns the value of attribute config.
15 16 17 |
# File 'lib/cld_provisioning/sdk_hooks/types.rb', line 15 def config @config end |
#oauth2_scopes ⇒ Object
Returns the value of attribute oauth2_scopes.
21 22 23 |
# File 'lib/cld_provisioning/sdk_hooks/types.rb', line 21 def oauth2_scopes @oauth2_scopes end |
#operation_id ⇒ Object
Returns the value of attribute operation_id.
24 25 26 |
# File 'lib/cld_provisioning/sdk_hooks/types.rb', line 24 def operation_id @operation_id end |
#security_source ⇒ Object
Returns the value of attribute security_source.
27 28 29 |
# File 'lib/cld_provisioning/sdk_hooks/types.rb', line 27 def security_source @security_source end |