Class: ClaudeAgentSDK::CwdChangedHookInput

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

Overview

CwdChanged hook input

Instance Attribute Summary collapse

Attributes inherited from BaseHookInput

#cwd, #hook_event_name, #permission_mode, #session_id, #transcript_path

Instance Method Summary collapse

Methods inherited from Type

#[], #[]=, from_hash, #to_h, wrap

Constructor Details

#initialize(attributes = {}) ⇒ CwdChangedHookInput

Returns a new instance of CwdChangedHookInput.



834
835
836
837
# File 'lib/claude_agent_sdk/types.rb', line 834

def initialize(attributes = {})
  super
  @hook_event_name = 'CwdChanged'
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type

Instance Attribute Details

#new_cwdObject

Returns the value of attribute new_cwd.



832
833
834
# File 'lib/claude_agent_sdk/types.rb', line 832

def new_cwd
  @new_cwd
end

#old_cwdObject

Returns the value of attribute old_cwd.



832
833
834
# File 'lib/claude_agent_sdk/types.rb', line 832

def old_cwd
  @old_cwd
end