Class: RelatonCalconnect::HashConverter

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

Class Method Summary collapse

Class Method Details

.editorialgroup_hash_to_bib(ret) ⇒ Object

Parameters:

  • ret (Hash)


5
6
7
8
9
10
11
12
# File 'lib/relaton_calconnect/hash_converter.rb', line 5

def editorialgroup_hash_to_bib(ret)
  return unless ret[:editorialgroup]

  technical_committee = array(ret[:editorialgroup]).map do |wg|
    TechnicalCommittee.new RelatonBib::WorkGroup.new(**wg)
  end
  ret[:editorialgroup] = RelatonBib::EditorialGroup.new technical_committee
end