Module: RelatonCalconnect::HashConverter

Extended by:
HashConverter
Includes:
RelatonBib::HashConverter
Included in:
HashConverter
Defined in:
lib/relaton_calconnect/hash_converter.rb

Instance Method Summary collapse

Instance Method Details

#create_doctype(**args) ⇒ Object



16
17
18
# File 'lib/relaton_calconnect/hash_converter.rb', line 16

def create_doctype(**args)
  DocumentType.new(**args)
end

#editorialgroup_hash_to_bib(ret) ⇒ Object

Parameters:

  • ret (Hash)


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

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

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