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.
760 761 762 763 764 765 |
# File 'lib/claude_agent_sdk/types.rb', line 760 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.
758 759 760 |
# File 'lib/claude_agent_sdk/types.rb', line 758 def cwd @cwd end |
#permission_mode ⇒ Object
Returns the value of attribute permission_mode.
758 759 760 |
# File 'lib/claude_agent_sdk/types.rb', line 758 def @permission_mode end |
#session_id ⇒ Object
Returns the value of attribute session_id.
758 759 760 |
# File 'lib/claude_agent_sdk/types.rb', line 758 def session_id @session_id end |
#transcript_path ⇒ Object
Returns the value of attribute transcript_path.
758 759 760 |
# File 'lib/claude_agent_sdk/types.rb', line 758 def transcript_path @transcript_path end |