Class: Kvom::Adapter::FilesystemAdapter

Inherits:
Base
  • Object
show all
Defined in:
lib/kvom/adapter/filesystem_adapter.rb

Constant Summary collapse

EXT =
".doc"
EXT_SIZE =
EXT.length
EXT_OFFSET =
-(EXT_SIZE + 1)

Instance Attribute Summary

Attributes inherited from Base

#connection_spec, #documents_loaded_counter, #request_counter

Instance Method Summary collapse

Methods inherited from Base

#destroy, #destroy_index, #get, #initialize, #query, #range_values_of_hash_value, #save, #save_index

Constructor Details

This class inherits a constructor from Kvom::Adapter::Base

Instance Method Details

#new_document(key, attributes) ⇒ Object



14
15
16
# File 'lib/kvom/adapter/filesystem_adapter.rb', line 14

def new_document(key, attributes)
  FilesystemDocument.new(key, attributes)
end