Class: FilesMgrBase
- Inherits:
-
Object
- Object
- FilesMgrBase
- Defined in:
- lib/glue_envs/files_mgr_base.rb
Overview
persistent layer helper classes/modules can go here
Instance Method Summary collapse
- #add(node, file_datas) ⇒ Object
- #add_raw_data(node, attach_name, content_type, raw_data, file_modified_at = nil) ⇒ Object
- #get_attachments_metadata(node) ⇒ Object
- #get_raw_data(node, file_basename) ⇒ Object
-
#initialize(glue_env, node_key_value) ⇒ FilesMgrBase
constructor
persistent layer class initialization code persistent layer accessors.
- #list(node) ⇒ Object
- #subtract(node, file_basenames) ⇒ Object
-
#subtract_all(node) ⇒ Object
can be called from subtract using :all instead of a list of file_basenames.
- #subtract_some(node, file_basenames) ⇒ Object
Constructor Details
#initialize(glue_env, node_key_value) ⇒ FilesMgrBase
persistent layer class initialization code persistent layer accessors
11 12 13 14 |
# File 'lib/glue_envs/files_mgr_base.rb', line 11 def initialize(glue_env, node_key_value) #persistent layer object creation raise NotImplementedError end |
Instance Method Details
#add(node, file_datas) ⇒ Object
16 17 18 |
# File 'lib/glue_envs/files_mgr_base.rb', line 16 def add(node, file_datas) raise NotImplementedError end |
#add_raw_data(node, attach_name, content_type, raw_data, file_modified_at = nil) ⇒ Object
20 21 22 |
# File 'lib/glue_envs/files_mgr_base.rb', line 20 def add_raw_data(node, attach_name, content_type, raw_data, file_modified_at = nil) raise NotImplementedError end |
#get_attachments_metadata(node) ⇒ Object
24 25 26 |
# File 'lib/glue_envs/files_mgr_base.rb', line 24 def (node) raise NotImplementedError end |
#get_raw_data(node, file_basename) ⇒ Object
28 29 30 |
# File 'lib/glue_envs/files_mgr_base.rb', line 28 def get_raw_data(node, file_basename) raise NotImplementedError end |
#list(node) ⇒ Object
32 33 34 |
# File 'lib/glue_envs/files_mgr_base.rb', line 32 def list(node) raise NotImplementedError end |
#subtract(node, file_basenames) ⇒ Object
36 37 38 |
# File 'lib/glue_envs/files_mgr_base.rb', line 36 def subtract(node, file_basenames) raise NotImplementedError end |
#subtract_all(node) ⇒ Object
can be called from subtract using :all instead of a list of file_basenames
40 41 42 |
# File 'lib/glue_envs/files_mgr_base.rb', line 40 def subtract_all(node) #can be called from subtract using :all instead of a list of file_basenames raise NotImplementedError end |
#subtract_some(node, file_basenames) ⇒ Object
44 45 46 |
# File 'lib/glue_envs/files_mgr_base.rb', line 44 def subtract_some(node, file_basenames) raise NotImplementedError end |