Sha256: 73cbe881da1e90e8b7ddddd9e4afede5a687d081827379652e257e8e5330385a

Contents?: true

Size: 756 Bytes

Versions: 11

Compression:

Stored size: 756 Bytes

Contents

module RelatonIeee
  class HashConverter < RelatonBib::HashConverter
    class << self
      # @param args [Hash]
      # @param neated [TrueClas, FalseClass] default true
      # @return [Hash]
      # def hash_to_bib(args)
      #   hash = super
      #   return nil unless hash.is_a?(Hash)

      #   editorialgroup_hash_to_bib hash
      #   hash
      # end

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

      # @param hash [Hash]
      def editorialgroup_hash_to_bib(hash)
        return unless hash[:editorialgroup]

        hash[:editorialgroup] = EditorialGroup.new(**hash[:editorialgroup])
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
relaton-ieee-1.14.4 lib/relaton_ieee/hash_converter.rb
relaton-ieee-1.14.3 lib/relaton_ieee/hash_converter.rb
relaton-ieee-1.14.2 lib/relaton_ieee/hash_converter.rb
relaton-ieee-1.14.1 lib/relaton_ieee/hash_converter.rb
relaton-ieee-1.14.0 lib/relaton_ieee/hash_converter.rb
relaton-ieee-1.13.1 lib/relaton_ieee/hash_converter.rb
relaton-ieee-1.13.0 lib/relaton_ieee/hash_converter.rb
relaton-ieee-1.12.8 lib/relaton_ieee/hash_converter.rb
relaton-ieee-1.12.7 lib/relaton_ieee/hash_converter.rb
relaton-ieee-1.12.6 lib/relaton_ieee/hash_converter.rb
relaton-ieee-1.12.5 lib/relaton_ieee/hash_converter.rb