Sha256: 8824e2ee5bb5ad5a5e06393b0cb6521ed7512c638ddad63677281720a21fe0fb

Contents?: true

Size: 670 Bytes

Versions: 26

Compression:

Stored size: 670 Bytes

Contents

module RelatonIetf
  class HashConverter < RelatonBib::HashConverter
    class << self
      #
      # Ovverides superclass's method
      #
      # @param item [Hash]
      # @retirn [RelatonIetf::IetfBibliographicItem]
      def bib_item(item)
        IetfBibliographicItem.new(**item)
      end

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

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
relaton-ietf-1.14.4 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.14.3 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.14.2 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.14.1 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.14.0 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.13.10 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.13.9 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.13.8 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.13.7 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.13.6 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.13.5 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.13.4 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.13.3 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.13.2 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.13.1 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.13.0 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.12.11 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.12.10 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.12.9 lib/relaton_ietf/hash_converter.rb
relaton-ietf-1.12.8 lib/relaton_ietf/hash_converter.rb