Class: RelatonIetf::HashConverter

Inherits:
RelatonBib::HashConverter
  • Object
show all
Defined in:
lib/relaton_ietf/hash_converter.rb

Class Method Summary collapse

Class Method Details

.bib_item(item) ⇒ Object

Ovverides superclass’s method

Parameters:

  • item (Hash)


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

Parameters:

  • ret (Hash)


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