Class: ClaudeCodeSDK::UserMessage
- Defined in:
- lib/claude_code_sdk/messages.rb
Overview
User input message
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Attributes inherited from Message
Instance Method Summary collapse
-
#initialize(id:, text:) ⇒ UserMessage
constructor
A new instance of UserMessage.
Constructor Details
#initialize(id:, text:) ⇒ UserMessage
Returns a new instance of UserMessage.
18 19 20 21 |
# File 'lib/claude_code_sdk/messages.rb', line 18 def initialize(id:, text:) super(id: id, type: "user") @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
16 17 18 |
# File 'lib/claude_code_sdk/messages.rb', line 16 def text @text end |