Module: Persistence::Files

Included in:
Persistence
Defined in:
lib/persistence/files.rb

Instance Method Summary collapse

Instance Method Details

#delete_filetrue, false

Deletes the file from persistence store.



26
# File 'lib/persistence/files.rb', line 26

delegate :delete_file, to: :file_adapter

#file_metadata(id) ⇒ Hash

Returns metadate for given file ID.



32
33
34
# File 'lib/persistence/files.rb', line 32

def (id)
  self.file_adapter.(id)
end

#get_fileString

Retreives the file from persistence store and returns it's content.



20
# File 'lib/persistence/files.rb', line 20

delegate :get_file, to: :file_adapter

#push_fileString

Pushes the file into persistence store and returns it's ID.



13
# File 'lib/persistence/files.rb', line 13

delegate :push_file, to: :file_adapter