Class: ClaudeAgentSDK::NotificationHookInput

Inherits:
BaseHookInput show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

Notification hook input

Instance Attribute Summary collapse

Attributes inherited from BaseHookInput

#cwd, #permission_mode, #session_id, #transcript_path

Instance Method Summary collapse

Constructor Details

#initialize(hook_event_name: 'Notification', message: nil, title: nil, notification_type: nil, **base_args) ⇒ NotificationHookInput

Returns a new instance of NotificationHookInput.



843
844
845
846
847
848
849
# File 'lib/claude_agent_sdk/types.rb', line 843

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 = message
  @title = title
  @notification_type = notification_type
end

Instance Attribute Details

#hook_event_nameObject

Returns the value of attribute hook_event_name.



841
842
843
# File 'lib/claude_agent_sdk/types.rb', line 841

def hook_event_name
  @hook_event_name
end

#messageObject

Returns the value of attribute message.



841
842
843
# File 'lib/claude_agent_sdk/types.rb', line 841

def message
  @message
end

#notification_typeObject

Returns the value of attribute notification_type.



841
842
843
# File 'lib/claude_agent_sdk/types.rb', line 841

def notification_type
  @notification_type
end

#titleObject

Returns the value of attribute title.



841
842
843
# File 'lib/claude_agent_sdk/types.rb', line 841

def title
  @title
end