Class: ClaudeAgentSDK::NotificationHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::NotificationHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Notification hook input
Instance Attribute Summary collapse
-
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
-
#message ⇒ Object
Returns the value of attribute message.
-
#notification_type ⇒ Object
Returns the value of attribute notification_type.
-
#title ⇒ Object
Returns the value of attribute title.
Attributes inherited from BaseHookInput
#cwd, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(hook_event_name: 'Notification', message: nil, title: nil, notification_type: nil, **base_args) ⇒ NotificationHookInput
constructor
A new instance of NotificationHookInput.
Constructor Details
#initialize(hook_event_name: 'Notification', message: nil, title: nil, notification_type: nil, **base_args) ⇒ NotificationHookInput
Returns a new instance of NotificationHookInput.
361 362 363 364 365 366 367 |
# File 'lib/claude_agent_sdk/types.rb', line 361 def initialize(hook_event_name: 'Notification', message: nil, title: nil, notification_type: nil, **base_args) super(**base_args) @hook_event_name = hook_event_name @message = @title = title @notification_type = notification_type end |
Instance Attribute Details
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
359 360 361 |
# File 'lib/claude_agent_sdk/types.rb', line 359 def hook_event_name @hook_event_name end |
#message ⇒ Object
Returns the value of attribute message.
359 360 361 |
# File 'lib/claude_agent_sdk/types.rb', line 359 def @message end |
#notification_type ⇒ Object
Returns the value of attribute notification_type.
359 360 361 |
# File 'lib/claude_agent_sdk/types.rb', line 359 def notification_type @notification_type end |
#title ⇒ Object
Returns the value of attribute title.
359 360 361 |
# File 'lib/claude_agent_sdk/types.rb', line 359 def title @title end |