Class: OpenApiSDK::SDKHooks::HookContext

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/open_api_sdk/sdk_hooks/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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/open_api_sdk/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_urlObject

Returns the value of attribute base_url.



19
20
21
# File 'lib/open_api_sdk/sdk_hooks/types.rb', line 19

def base_url
  @base_url
end

#configObject

Returns the value of attribute config.



16
17
18
# File 'lib/open_api_sdk/sdk_hooks/types.rb', line 16

def config
  @config
end

#oauth2_scopesObject

Returns the value of attribute oauth2_scopes.



22
23
24
# File 'lib/open_api_sdk/sdk_hooks/types.rb', line 22

def oauth2_scopes
  @oauth2_scopes
end

#operation_idObject

Returns the value of attribute operation_id.



25
26
27
# File 'lib/open_api_sdk/sdk_hooks/types.rb', line 25

def operation_id
  @operation_id
end

#security_sourceObject

Returns the value of attribute security_source.



28
29
30
# File 'lib/open_api_sdk/sdk_hooks/types.rb', line 28

def security_source
  @security_source
end