Class: ClaudeAgentSDK::SetupHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::SetupHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Setup hook input
Instance Attribute Summary collapse
-
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
-
#trigger ⇒ Object
Returns the value of attribute trigger.
Attributes inherited from BaseHookInput
#cwd, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(hook_event_name: 'Setup', trigger: nil, **base_args) ⇒ SetupHookInput
constructor
A new instance of SetupHookInput.
Constructor Details
#initialize(hook_event_name: 'Setup', trigger: nil, **base_args) ⇒ SetupHookInput
Returns a new instance of SetupHookInput.
920 921 922 923 924 |
# File 'lib/claude_agent_sdk/types.rb', line 920 def initialize(hook_event_name: 'Setup', trigger: nil, **base_args) super(**base_args) @hook_event_name = hook_event_name @trigger = trigger # "init" or "maintenance" end |
Instance Attribute Details
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
918 919 920 |
# File 'lib/claude_agent_sdk/types.rb', line 918 def hook_event_name @hook_event_name end |
#trigger ⇒ Object
Returns the value of attribute trigger.
918 919 920 |
# File 'lib/claude_agent_sdk/types.rb', line 918 def trigger @trigger end |