Method: MARC::JSONLWriter.encode
- Defined in:
- lib/marc/jsonl_writer.rb
.encode(record) ⇒ String
Encode the record as a marc-in-json string
35 36 37 |
# File 'lib/marc/jsonl_writer.rb', line 35 def self.encode(record) JSON.fast_generate(record.to_hash) end |