Class: ClaudeAgentSDK::ConfigChangeHookInput

Inherits:
BaseHookInput show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

ConfigChange hook input

Instance Attribute Summary collapse

Attributes inherited from BaseHookInput

#cwd, #permission_mode, #session_id, #transcript_path

Instance Method Summary collapse

Constructor Details

#initialize(hook_event_name: 'ConfigChange', source: nil, file_path: nil, **base_args) ⇒ ConfigChangeHookInput

Returns a new instance of ConfigChangeHookInput.



980
981
982
983
984
985
# File 'lib/claude_agent_sdk/types.rb', line 980

def initialize(hook_event_name: 'ConfigChange', source: nil, file_path: nil, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @source = source # "user_settings", "project_settings", "local_settings", "policy_settings", "skills"
  @file_path = file_path
end

Instance Attribute Details

#file_pathObject

Returns the value of attribute file_path.



978
979
980
# File 'lib/claude_agent_sdk/types.rb', line 978

def file_path
  @file_path
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



978
979
980
# File 'lib/claude_agent_sdk/types.rb', line 978

def hook_event_name
  @hook_event_name
end

#sourceObject

Returns the value of attribute source.



978
979
980
# File 'lib/claude_agent_sdk/types.rb', line 978

def source
  @source
end