Sha256: a76ab39da5871f530e60093c6815bec55bd2be5b5f7f1745b46009ae14b0abb9
Contents?: true
Size: 774 Bytes
Versions: 7
Compression:
Stored size: 774 Bytes
Contents
module RelatonItu module HashConverter include RelatonBib::HashConverter extend self private # # Ovverides superclass's method # # @param item [Hash] # @retirn [RelatonItu::ItuBibliographicItem] def bib_item(item) ItuBibliographicItem.new(**item) end def editorialgroup_hash_to_bib(ret) eg = ret[:editorialgroup] return unless eg ret[:editorialgroup] = EditorialGroup.new(**eg) end # @param ret [Hash] def structuredidentifier_hash_to_bib(ret) return unless ret[:structuredidentifier] ret[:structuredidentifier] = StructuredIdentifier.new( **ret[:structuredidentifier] ) end def create_doctype(**args) DocumentType.new(**args) end end end
Version data entries
7 entries across 7 versions & 1 rubygems