Class: ClaudeAgentSDK::FileChangedHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::FileChangedHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
FileChanged hook input
Instance Attribute Summary collapse
-
#event ⇒ Object
Returns the value of attribute event.
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
Attributes inherited from BaseHookInput
#cwd, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(hook_event_name: 'FileChanged', file_path: nil, event: nil, **base_args) ⇒ FileChangedHookInput
constructor
A new instance of FileChangedHookInput.
Constructor Details
#initialize(hook_event_name: 'FileChanged', file_path: nil, event: nil, **base_args) ⇒ FileChangedHookInput
Returns a new instance of FileChangedHookInput.
1135 1136 1137 1138 1139 1140 |
# File 'lib/claude_agent_sdk/types.rb', line 1135 def initialize(hook_event_name: 'FileChanged', file_path: nil, event: nil, **base_args) super(**base_args) @hook_event_name = hook_event_name @file_path = file_path @event = event # "change", "add", or "unlink" end |
Instance Attribute Details
#event ⇒ Object
Returns the value of attribute event.
1133 1134 1135 |
# File 'lib/claude_agent_sdk/types.rb', line 1133 def event @event end |
#file_path ⇒ Object
Returns the value of attribute file_path.
1133 1134 1135 |
# File 'lib/claude_agent_sdk/types.rb', line 1133 def file_path @file_path end |
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
1133 1134 1135 |
# File 'lib/claude_agent_sdk/types.rb', line 1133 def hook_event_name @hook_event_name end |