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, #hook_event_name, #permission_mode, #session_id, #transcript_path

Instance Method Summary collapse

Methods inherited from Type

#[], #[]=, from_hash, #to_h, wrap

Constructor Details

#initialize(attributes = {}) ⇒ NotificationHookInput

Returns a new instance of NotificationHookInput.



755
756
757
758
# File 'lib/claude_agent_sdk/types.rb', line 755

def initialize(attributes = {})
  super
  @hook_event_name = 'Notification'
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type

Instance Attribute Details

#messageObject

Returns the value of attribute message.



753
754
755
# File 'lib/claude_agent_sdk/types.rb', line 753

def message
  @message
end

#notification_typeObject

Returns the value of attribute notification_type.



753
754
755
# File 'lib/claude_agent_sdk/types.rb', line 753

def notification_type
  @notification_type
end

#titleObject

Returns the value of attribute title.



753
754
755
# File 'lib/claude_agent_sdk/types.rb', line 753

def title
  @title
end