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.



643
644
645
646
# File 'lib/claude_agent_sdk/types.rb', line 643

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.



641
642
643
# File 'lib/claude_agent_sdk/types.rb', line 641

def message
  @message
end

#notification_typeObject

Returns the value of attribute notification_type.



641
642
643
# File 'lib/claude_agent_sdk/types.rb', line 641

def notification_type
  @notification_type
end

#titleObject

Returns the value of attribute title.



641
642
643
# File 'lib/claude_agent_sdk/types.rb', line 641

def title
  @title
end