Module: Persistence::Files
- Included in:
- Persistence
- Defined in:
- lib/persistence/files.rb
Instance Method Summary (collapse)
-
- (true, false) delete_file
Deletes the file from persistence store.
-
- (Hash) file_metadata(id)
Returns metadate for given file ID.
-
- (String) get_file
Retreives the file from persistence store and returns it's content.
-
- (String) push_file
Pushes the file into persistence store and returns it's ID.
Instance Method Details
- (true, false) delete_file
Deletes the file from persistence store.
26 |
# File 'lib/persistence/files.rb', line 26 delegate :delete_file, to: :file_adapter |
- (Hash) file_metadata(id)
Returns metadate for given file ID.
32 33 34 |
# File 'lib/persistence/files.rb', line 32 def (id) self.file_adapter.(id) end |
- (String) get_file
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 |
- (String) push_file
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 |