Module: ResearchMetadataBatch::Shared
- Included in:
- Base
- Defined in:
- lib/research_metadata_batch/shared.rb
Overview
Note:
These methods (except init) are used internally by Base#process and have been left public for documentation purposes only
Instance Method Summary collapse
-
#act(model) ⇒ Hash?
Do something with model metadata.
-
#init(**args) ⇒ Object
Second stage initialisation, perhaps third party services.
-
#preflight ⇒ Hash?
Anything to be done at the start of a batch run.
-
#valid?(model) ⇒ Boolean
Check for values in metadata.
Instance Method Details
#act(model) ⇒ Hash?
Do something with model metadata
18 19 20 |
# File 'lib/research_metadata_batch/shared.rb', line 18 def act(model) puts model.inspect end |
#init(**args) ⇒ Object
Second stage initialisation, perhaps third party services.
8 9 |
# File 'lib/research_metadata_batch/shared.rb', line 8 def init(**args) end |
#preflight ⇒ Hash?
Anything to be done at the start of a batch run
13 14 |
# File 'lib/research_metadata_batch/shared.rb', line 13 def preflight end |
#valid?(model) ⇒ Boolean
Check for values in metadata.
24 25 26 |
# File 'lib/research_metadata_batch/shared.rb', line 24 def valid?(model) true end |