Module: Holistic::Document::File::Store

Extended by:
Store
Included in:
Store
Defined in:
lib/holistic/document/file/store.rb

Instance Method Summary collapse

Instance Method Details

#call(database:, file_path:) ⇒ Object



7
8
9
10
11
# File 'lib/holistic/document/file/store.rb', line 7

def call(database:, file_path:)
  record = Record.new(file_path, { path: file_path })

  database.store(file_path, record)
end