Sha256: 758d3e10e0948f55bebd6d57db081afa3f5b2dd019011d68e2428dc26822becb
Contents?: true
Size: 666 Bytes
Versions: 9
Compression:
Stored size: 666 Bytes
Contents
module Bolognese module Writers module CsvWriter require "csv" def csv return nil unless valid? bib = { doi: doi, url: url, registered: get_iso8601_date(date_registered), state: state, resource_type_general: types["resourceTypeGeneral"], resource_type: types["resourceType"], title: parse_attributes(titles, content: "title", first: true), author: authors_as_string(creators), publisher: publisher["name"], publication_year: publication_year }.values CSV.generate { |csv| csv << bib } end end end end
Version data entries
9 entries across 9 versions & 1 rubygems