Class: ClaudeAgentSDK::BaseHookInput

Inherits:
Type
  • Object
show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

Base hook input with common fields

Instance Attribute Summary collapse

Method Summary

Methods inherited from Type

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

Constructor Details

This class inherits a constructor from ClaudeAgentSDK::Type

Dynamic Method Handling

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

Instance Attribute Details

#cwdObject

Returns the value of attribute cwd.



605
606
607
# File 'lib/claude_agent_sdk/types.rb', line 605

def cwd
  @cwd
end

#hook_event_nameObject (readonly)

Returns the value of attribute hook_event_name.



606
607
608
# File 'lib/claude_agent_sdk/types.rb', line 606

def hook_event_name
  @hook_event_name
end

#permission_modeObject

Returns the value of attribute permission_mode.



605
606
607
# File 'lib/claude_agent_sdk/types.rb', line 605

def permission_mode
  @permission_mode
end

#session_idObject

Returns the value of attribute session_id.



605
606
607
# File 'lib/claude_agent_sdk/types.rb', line 605

def session_id
  @session_id
end

#transcript_pathObject

Returns the value of attribute transcript_path.



605
606
607
# File 'lib/claude_agent_sdk/types.rb', line 605

def transcript_path
  @transcript_path
end