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.



959
960
961
962
963
964
# File 'lib/claude_agent_sdk/types.rb', line 959

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.



957
958
959
# File 'lib/claude_agent_sdk/types.rb', line 957

def file_path
  @file_path
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



957
958
959
# File 'lib/claude_agent_sdk/types.rb', line 957

def hook_event_name
  @hook_event_name
end

#sourceObject

Returns the value of attribute source.



957
958
959
# File 'lib/claude_agent_sdk/types.rb', line 957

def source
  @source
end