Class: ClaudeCodeSDK::Content::TextBlock
- Inherits:
-
Object
- Object
- ClaudeCodeSDK::Content::TextBlock
- Defined in:
- lib/claude_code_sdk/messages.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(text:) ⇒ TextBlock
constructor
A new instance of TextBlock.
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
#text ⇒ Object (readonly)
Returns the value of attribute text.
71 72 73 |
# File 'lib/claude_code_sdk/messages.rb', line 71 def text @text end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
71 72 73 |
# File 'lib/claude_code_sdk/messages.rb', line 71 def type @type end |