Class: ClaudeAgentSDK::BaseHookInput
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::BaseHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Base hook input with common fields
Direct Known Subclasses
NotificationHookInput, PermissionRequestHookInput, PostToolUseFailureHookInput, PostToolUseHookInput, PreCompactHookInput, PreToolUseHookInput, StopHookInput, SubagentStartHookInput, SubagentStopHookInput, UserPromptSubmitHookInput
Instance Attribute Summary collapse
-
#cwd ⇒ Object
Returns the value of attribute cwd.
-
#permission_mode ⇒ Object
Returns the value of attribute permission_mode.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#transcript_path ⇒ Object
Returns the value of attribute transcript_path.
Instance Method Summary collapse
-
#initialize(session_id: nil, transcript_path: nil, cwd: nil, permission_mode: nil) ⇒ BaseHookInput
constructor
A new instance of BaseHookInput.
Constructor Details
#initialize(session_id: nil, transcript_path: nil, cwd: nil, permission_mode: nil) ⇒ BaseHookInput
Returns a new instance of BaseHookInput.
302 303 304 305 306 307 |
# File 'lib/claude_agent_sdk/types.rb', line 302 def initialize(session_id: nil, transcript_path: nil, cwd: nil, permission_mode: nil) @session_id = session_id @transcript_path = transcript_path @cwd = cwd @permission_mode = end |
Instance Attribute Details
#cwd ⇒ Object
Returns the value of attribute cwd.
300 301 302 |
# File 'lib/claude_agent_sdk/types.rb', line 300 def cwd @cwd end |
#permission_mode ⇒ Object
Returns the value of attribute permission_mode.
300 301 302 |
# File 'lib/claude_agent_sdk/types.rb', line 300 def @permission_mode end |
#session_id ⇒ Object
Returns the value of attribute session_id.
300 301 302 |
# File 'lib/claude_agent_sdk/types.rb', line 300 def session_id @session_id end |
#transcript_path ⇒ Object
Returns the value of attribute transcript_path.
300 301 302 |
# File 'lib/claude_agent_sdk/types.rb', line 300 def transcript_path @transcript_path end |