Sha256: cff0cdd966bb5dd10888d12d454b8a3410092e9f41b4acc6a63aca846605bd27

Contents?: true

Size: 495 Bytes

Versions: 11

Compression:

Stored size: 495 Bytes

Contents

module Relaton3gpp
  class HashConverter < RelatonBib::HashConverter
    class << self
      def hash_to_bib(args, nested = false)
        hash = super
        release_hash_to_bib(hash)
        hash
      end

      def release_hash_to_bib(hash)
        hash[:release] &&= Release.new(**hash[:release])
      end

      # @param item_hash [Hash]
      # @return [RelatonBib::BibliographicItem]
      def bib_item(item_hash)
        BibliographicItem.new(**item_hash)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
relaton-3gpp-1.10.5 lib/relaton_3gpp/hash_converter.rb
relaton-3gpp-1.10.4 lib/relaton_3gpp/hash_converter.rb
relaton-3gpp-1.10.3 lib/relaton_3gpp/hash_converter.rb
relaton-3gpp-1.10.2 lib/relaton_3gpp/hash_converter.rb
relaton-3gpp-1.10.1 lib/relaton_3gpp/hash_converter.rb
relaton-3gpp-1.10.0 lib/relaton_3gpp/hash_converter.rb
relaton-3gpp-1.9.4 lib/relaton_3gpp/hash_converter.rb
relaton-3gpp-1.9.3 lib/relaton_3gpp/hash_converter.rb
relaton-3gpp-1.9.2 lib/relaton_3gpp/hash_converter.rb
relaton-3gpp-1.9.1 lib/relaton_3gpp/hash_converter.rb
relaton-3gpp-1.9.0 lib/relaton_3gpp/hash_converter.rb