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
ConfigChangeHookInput, CwdChangedHookInput, ElicitationHookInput, ElicitationResultHookInput, FileChangedHookInput, InstructionsLoadedHookInput, NotificationHookInput, PermissionDeniedHookInput, PermissionRequestHookInput, PostCompactHookInput, PostToolUseFailureHookInput, PostToolUseHookInput, PreCompactHookInput, PreToolUseHookInput, SessionEndHookInput, SessionStartHookInput, SetupHookInput, StopFailureHookInput, StopHookInput, SubagentStartHookInput, SubagentStopHookInput, TaskCompletedHookInput, TaskCreatedHookInput, TeammateIdleHookInput, UserPromptSubmitHookInput, WorktreeCreateHookInput, WorktreeRemoveHookInput
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.
739 740 741 742 743 744 |
# File 'lib/claude_agent_sdk/types.rb', line 739 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.
737 738 739 |
# File 'lib/claude_agent_sdk/types.rb', line 737 def cwd @cwd end |
#permission_mode ⇒ Object
Returns the value of attribute permission_mode.
737 738 739 |
# File 'lib/claude_agent_sdk/types.rb', line 737 def @permission_mode end |
#session_id ⇒ Object
Returns the value of attribute session_id.
737 738 739 |
# File 'lib/claude_agent_sdk/types.rb', line 737 def session_id @session_id end |
#transcript_path ⇒ Object
Returns the value of attribute transcript_path.
737 738 739 |
# File 'lib/claude_agent_sdk/types.rb', line 737 def transcript_path @transcript_path end |