class HQMF2::Generator::ModelProcessor
Class to serialize HQMF::Document
as HQMF
V2 XML
Public Class Methods
to_hqmf(doc)
click to toggle source
Convert the supplied model instance to XML @param [HQMF::Document] doc the model instance @return [String] the serialized XML as a String
# File lib/hqmf-generator/hqmf-generator.rb, line 17 def self.to_hqmf(doc) HQMF2::Generator.render_template('document', {'doc' => doc}) end