Class: RelatonIetf::HashConverter
- Inherits:
-
RelatonBib::HashConverter
- Object
- RelatonBib::HashConverter
- RelatonIetf::HashConverter
- Defined in:
- lib/relaton_ietf/hash_converter.rb
Class Method Summary collapse
-
.bib_item(item) ⇒ Object
Ovverides superclass’s method.
- .editorialgroup_hash_to_bib(ret) ⇒ Object
Class Method Details
.bib_item(item) ⇒ Object
Ovverides superclass’s method
9 10 11 |
# File 'lib/relaton_ietf/hash_converter.rb', line 9 def bib_item(item) IetfBibliographicItem.new(**item) end |
.editorialgroup_hash_to_bib(ret) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/relaton_ietf/hash_converter.rb', line 14 def editorialgroup_hash_to_bib(ret) return unless ret[:editorialgroup] technical_committee = RelatonBib.array(ret[:editorialgroup]).map do |wg| Committee.new RelatonBib::WorkGroup.new(**wg) end ret[:editorialgroup] = RelatonBib::EditorialGroup.new technical_committee end |