Class: HQMF2::Generator::ModelProcessor
- Inherits:
-
Object
- Object
- HQMF2::Generator::ModelProcessor
- Defined in:
- lib/hqmf-generator/hqmf-generator.rb
Overview
Class to serialize HQMF::Document as HQMF V2 XML
Class Method Summary collapse
-
.to_hqmf(doc) ⇒ String
Convert the supplied model instance to XML.
Class Method Details
.to_hqmf(doc) ⇒ String
Convert the supplied model instance to XML
17 18 19 |
# File 'lib/hqmf-generator/hqmf-generator.rb', line 17 def self.to_hqmf(doc) HQMF2::Generator.render_template('document', {'doc' => doc}) end |