Class: ClaudeAgentSDK::SessionStartHookInput

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

Overview

SessionStart 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 = {}) ⇒ SessionStartHookInput

Returns a new instance of SessionStartHookInput.



683
684
685
686
# File 'lib/claude_agent_sdk/types.rb', line 683

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

Dynamic Method Handling

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

Instance Attribute Details

#agent_typeObject

Returns the value of attribute agent_type.



681
682
683
# File 'lib/claude_agent_sdk/types.rb', line 681

def agent_type
  @agent_type
end

#modelObject

Returns the value of attribute model.



681
682
683
# File 'lib/claude_agent_sdk/types.rb', line 681

def model
  @model
end

#sourceObject

Returns the value of attribute source.



681
682
683
# File 'lib/claude_agent_sdk/types.rb', line 681

def source
  @source
end