Class: Legion::Extensions::WorkingMemory::Client

Inherits:
Object
  • Object
show all
Includes:
Runners::WorkingMemory
Defined in:
lib/legion/extensions/working_memory/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Runners::WorkingMemory

#buffer_status, #clear_buffer, #consolidation_candidates, #find_interference, #rehearse_item, #remove_item, #retrieve_by_tag, #retrieve_by_type, #retrieve_item, #store_item, #update_working_memory, #working_memory_stats

Constructor Details

#initialize(buffer: nil) ⇒ Client

Returns a new instance of Client.



11
12
13
# File 'lib/legion/extensions/working_memory/client.rb', line 11

def initialize(buffer: nil, **)
  @buffer = buffer || Helpers::Buffer.new
end

Instance Attribute Details

#bufferObject (readonly)

Returns the value of attribute buffer.



9
10
11
# File 'lib/legion/extensions/working_memory/client.rb', line 9

def buffer
  @buffer
end