Class: ClaudeAgentSDK::HookMatcher

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

Overview

Hook matcher configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(matcher: nil, hooks: [], timeout: nil) ⇒ HookMatcher

Returns a new instance of HookMatcher.



719
720
721
722
723
# File 'lib/claude_agent_sdk/types.rb', line 719

def initialize(matcher: nil, hooks: [], timeout: nil)
  @matcher = matcher
  @hooks = hooks
  @timeout = timeout # Timeout in seconds for hook execution
end

Instance Attribute Details

#hooksObject

Returns the value of attribute hooks.



717
718
719
# File 'lib/claude_agent_sdk/types.rb', line 717

def hooks
  @hooks
end

#matcherObject

Returns the value of attribute matcher.



717
718
719
# File 'lib/claude_agent_sdk/types.rb', line 717

def matcher
  @matcher
end

#timeoutObject

Returns the value of attribute timeout.



717
718
719
# File 'lib/claude_agent_sdk/types.rb', line 717

def timeout
  @timeout
end