class HealthDataStandards::Export::Hdata::Metadata
Public Class Methods
new()
click to toggle source
# File lib/health-data-standards/export/hdata/metadata.rb, line 5 def initialize template_helper = TemplateHelper.new('hdata') @rendering_context = RenderingContext.new @rendering_context.template_helper = template_helper end
Public Instance Methods
export(entry, metadata, include_namespace=false)
click to toggle source
# File lib/health-data-standards/export/hdata/metadata.rb, line 11 def export(entry, metadata, include_namespace=false) @rendering_context.render(:template => 'metadata', :locals => {entry: entry, metadata: metadata, namespace: include_namespace}) end