Class: Legion::Extensions::WorkingMemory::Client
- Inherits:
-
Object
- Object
- Legion::Extensions::WorkingMemory::Client
- Includes:
- Runners::WorkingMemory
- Defined in:
- lib/legion/extensions/working_memory/client.rb
Instance Attribute Summary collapse
-
#buffer ⇒ Object
readonly
Returns the value of attribute buffer.
Instance Method Summary collapse
-
#initialize(buffer: nil) ⇒ Client
constructor
A new instance of Client.
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
#buffer ⇒ Object (readonly)
Returns the value of attribute buffer.
9 10 11 |
# File 'lib/legion/extensions/working_memory/client.rb', line 9 def buffer @buffer end |