Class: ClaudeAgentSDK::HookMatcher
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::HookMatcher
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Hook matcher configuration
Instance Attribute Summary collapse
-
#hooks ⇒ Object
Returns the value of attribute hooks.
-
#matcher ⇒ Object
Returns the value of attribute matcher.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(matcher: nil, hooks: [], timeout: nil) ⇒ HookMatcher
constructor
A new instance of HookMatcher.
Constructor Details
#initialize(matcher: nil, hooks: [], timeout: nil) ⇒ HookMatcher
Returns a new instance of HookMatcher.
242 243 244 245 246 |
# File 'lib/claude_agent_sdk/types.rb', line 242 def initialize(matcher: nil, hooks: [], timeout: nil) @matcher = matcher @hooks = hooks @timeout = timeout # Timeout in seconds for hook execution end |
Instance Attribute Details
#hooks ⇒ Object
Returns the value of attribute hooks.
240 241 242 |
# File 'lib/claude_agent_sdk/types.rb', line 240 def hooks @hooks end |
#matcher ⇒ Object
Returns the value of attribute matcher.
240 241 242 |
# File 'lib/claude_agent_sdk/types.rb', line 240 def matcher @matcher end |
#timeout ⇒ Object
Returns the value of attribute timeout.
240 241 242 |
# File 'lib/claude_agent_sdk/types.rb', line 240 def timeout @timeout end |