Module: RelatonEtsi::HashConverter
- Extended by:
- HashConverter
- Includes:
- RelatonBib::HashConverter
- Included in:
- HashConverter
- Defined in:
- lib/relaton_etsi/hash_converter.rb
Instance Method Summary collapse
-
#hash_to_bib(hash) ⇒ Object
rubocop:disable Metrics/AbcSize.
Instance Method Details
#hash_to_bib(hash) ⇒ Object
rubocop:disable Metrics/AbcSize
6 7 8 9 10 11 12 13 |
# File 'lib/relaton_etsi/hash_converter.rb', line 6 def hash_to_bib(hash) # rubocop:disable Metrics/AbcSize ret = super ret[:marker] = hash["ext"]["marker"] if hash.dig("ext", "marker") ret[:frequency] = hash["ext"]["frequency"] if hash.dig("ext", "frequency") ret[:mandate] = hash["ext"]["mandate"] if hash.dig("ext", "mandate") ret[:custom_collection] = hash["ext"]["custom_collection"] if hash.dig("ext", "custom_collection") ret end |