Sha256: 56bdb4d34cf40dae00c3fd52e34d7941f542672b3b32b2128e89735d84daeac6

Contents?: true

Size: 530 Bytes

Versions: 4

Compression:

Stored size: 530 Bytes

Contents

module RelatonCalconnect
  module HashConverter
    include RelatonBib::HashConverter
    extend self

    # @param ret [Hash]
    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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
relaton-calconnect-1.19.1 lib/relaton_calconnect/hash_converter.rb
relaton-calconnect-1.19.0 lib/relaton_calconnect/hash_converter.rb
relaton-calconnect-1.18.0 lib/relaton_calconnect/hash_converter.rb
relaton-calconnect-1.17.0 lib/relaton_calconnect/hash_converter.rb