Class: HealthDataStandards::Export::Hdata::Metadata

Inherits:
Object
  • Object
show all
Defined in:
lib/health-data-standards/export/hdata/metadata.rb

Instance Method Summary collapse

Constructor Details

#initializeMetadata

Returns a new instance of Metadata.



5
6
7
8
9
# 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

Instance Method Details

#export(entry, metadata, include_namespace = false) ⇒ Object



11
12
13
# File 'lib/health-data-standards/export/hdata/metadata.rb', line 11

def export(entry, , include_namespace=false)
  @rendering_context.render(:template => 'metadata', :locals => {entry: entry, metadata: , namespace: include_namespace})
end