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.



558
559
560
561
# File 'lib/claude_agent_sdk/types.rb', line 558

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.



556
557
558
# File 'lib/claude_agent_sdk/types.rb', line 556

def hooks
  @hooks
end

#matcherObject

Returns the value of attribute matcher.



556
557
558
# File 'lib/claude_agent_sdk/types.rb', line 556

def matcher
  @matcher
end

#timeoutObject

Returns the value of attribute timeout.



556
557
558
# File 'lib/claude_agent_sdk/types.rb', line 556

def timeout
  @timeout
end