Class: Geminize::Models::UserMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/geminize/models/message.rb

Overview

Represents a message from the user

Instance Method Summary collapse

Constructor Details

#initialize(content, timestamp = nil) ⇒ UserMessage

Initialize a new user message

Parameters:

  • content (String)

    The content of the message

  • timestamp (Time, nil) (defaults to: nil)

    When the message was created



125
126
127
# File 'lib/geminize/models/message.rb', line 125

def initialize(content, timestamp = nil)
  super(content, "user", timestamp)
end