Class: ClaudeCodeSDK::Message

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

Overview

Base message class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, type:) ⇒ Message



8
9
10
11
# File 'lib/claude_code_sdk/messages.rb', line 8

def initialize(id:, type:)
  @id = id
  @type = type
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/claude_code_sdk/messages.rb', line 6

def id
  @id
end

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/claude_code_sdk/messages.rb', line 6

def type
  @type
end