Class: DingSDK::SDKHooks::HookContext

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_urlObject

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_scopesObject

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_idObject

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_sourceObject

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