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.
790 791 792 793 794 795 |
# File 'lib/claude_agent_sdk/types.rb', line 790 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.
788 789 790 |
# File 'lib/claude_agent_sdk/types.rb', line 788 def cwd @cwd end |
#permission_mode ⇒ Object
Returns the value of attribute permission_mode.
788 789 790 |
# File 'lib/claude_agent_sdk/types.rb', line 788 def @permission_mode end |
#session_id ⇒ Object
Returns the value of attribute session_id.
788 789 790 |
# File 'lib/claude_agent_sdk/types.rb', line 788 def session_id @session_id end |
#transcript_path ⇒ Object
Returns the value of attribute transcript_path.
788 789 790 |
# File 'lib/claude_agent_sdk/types.rb', line 788 def transcript_path @transcript_path end |