Class: ClaudeAgentSDK::HookMatcher

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

Overview

Hook matcher configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Type

#[], #[]=, from_hash, #to_h, wrap

Constructor Details

#initialize(attributes = {}) ⇒ HookMatcher

Returns a new instance of HookMatcher.



592
593
594
595
# File 'lib/claude_agent_sdk/types.rb', line 592

def initialize(attributes = {})
  super
  @hooks ||= []
end

Dynamic Method Handling

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

Instance Attribute Details

#hooksObject

Returns the value of attribute hooks.



590
591
592
# File 'lib/claude_agent_sdk/types.rb', line 590

def hooks
  @hooks
end

#matcherObject

Returns the value of attribute matcher.



590
591
592
# File 'lib/claude_agent_sdk/types.rb', line 590

def matcher
  @matcher
end

#timeoutObject

Returns the value of attribute timeout.



590
591
592
# File 'lib/claude_agent_sdk/types.rb', line 590

def timeout
  @timeout
end