Class: Legion::CLI::Chat::DaemonChat::ModelInfo

Inherits:
Struct
  • Object
show all
Defined in:
lib/legion/cli/chat/daemon_chat.rb

Overview

Minimal model object responding to .id (used by Session#model_id).

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



29
30
31
# File 'lib/legion/cli/chat/daemon_chat.rb', line 29

def id
  @id
end

Instance Method Details

#to_sObject



30
31
32
# File 'lib/legion/cli/chat/daemon_chat.rb', line 30

def to_s
  id.to_s
end