class RelatonCalconnect::HashConverter

Public Class Methods

editorialgroup_hash_to_bib(ret) click to toggle source

@param ret [Hash]

# 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