class PIM::MappingExporter::ExportDocument
Attributes
mapping[R]
output[R]
template_asset[R]
Public Class Methods
create_export_document(mapping, template_asset, output)
click to toggle source
# File mapping-exporter.rb, line 88 def self.create_export_document mapping, template_asset, output ObjectSpace.each_object(Class).select do |o| next unless o < ExportDocument next unless o.respond_to?(:matches?) next unless o.matches?(mapping, template_asset) return o.new(mapping, template_asset, output) end return nil end
new(mapping, template_asset, output)
click to toggle source
# File mapping-exporter.rb, line 105 def initialize mapping, template_asset, output @template_asset = template_asset @mapping = mapping @output = output end
Public Instance Methods
output_content_type()
click to toggle source
# File mapping-exporter.rb, line 111 def output_content_type end
start()
click to toggle source
# File mapping-exporter.rb, line 114 def start end
stop()
click to toggle source
# File mapping-exporter.rb, line 117 def stop end
write_mapped_item(mapped_item)
click to toggle source
# File mapping-exporter.rb, line 120 def write_mapped_item mapped_item end