Class: ClaudeAgentSDK::HookStartedMessage

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

Overview

Hook started system message

Instance Attribute Summary collapse

Attributes inherited from SystemMessage

#data, #subtype

Instance Method Summary collapse

Constructor Details

#initialize(subtype:, data:, uuid: nil, session_id: nil, hook_id: nil, hook_name: nil, hook_event: nil) ⇒ HookStartedMessage

Returns a new instance of HookStartedMessage.



297
298
299
300
301
302
303
304
# File 'lib/claude_agent_sdk/types.rb', line 297

def initialize(subtype:, data:, uuid: nil, session_id: nil, hook_id: nil, hook_name: nil, hook_event: nil)
  super(subtype: subtype, data: data)
  @uuid = uuid
  @session_id = session_id
  @hook_id = hook_id
  @hook_name = hook_name
  @hook_event = hook_event
end

Instance Attribute Details

#hook_eventObject

Returns the value of attribute hook_event.



295
296
297
# File 'lib/claude_agent_sdk/types.rb', line 295

def hook_event
  @hook_event
end

#hook_idObject

Returns the value of attribute hook_id.



295
296
297
# File 'lib/claude_agent_sdk/types.rb', line 295

def hook_id
  @hook_id
end

#hook_nameObject

Returns the value of attribute hook_name.



295
296
297
# File 'lib/claude_agent_sdk/types.rb', line 295

def hook_name
  @hook_name
end

#session_idObject

Returns the value of attribute session_id.



295
296
297
# File 'lib/claude_agent_sdk/types.rb', line 295

def session_id
  @session_id
end

#uuidObject

Returns the value of attribute uuid.



295
296
297
# File 'lib/claude_agent_sdk/types.rb', line 295

def uuid
  @uuid
end