Class: ClaudeCodeSDK::Content::TextBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/claude_code_sdk/messages.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text:) ⇒ TextBlock



73
74
75
76
# File 'lib/claude_code_sdk/messages.rb', line 73

def initialize(text:)
  @type = "text"
  @text = text
end

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text.



71
72
73
# File 'lib/claude_code_sdk/messages.rb', line 71

def text
  @text
end

#typeObject (readonly)

Returns the value of attribute type.



71
72
73
# File 'lib/claude_code_sdk/messages.rb', line 71

def type
  @type
end