Class: ClaudeCode::ToolUseBlock

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, name:, input:) ⇒ ToolUseBlock

Returns a new instance of ToolUseBlock.



19
20
21
22
23
# File 'lib/claude_code/types.rb', line 19

def initialize(id:, name:, input:)
  @id = id
  @name = name
  @input = input
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



17
18
19
# File 'lib/claude_code/types.rb', line 17

def id
  @id
end

#inputObject (readonly)

Returns the value of attribute input.



17
18
19
# File 'lib/claude_code/types.rb', line 17

def input
  @input
end

#nameObject (readonly)

Returns the value of attribute name.



17
18
19
# File 'lib/claude_code/types.rb', line 17

def name
  @name
end