Class: HealthDataStandards::Export::Hdata::Metadata
- Inherits:
-
Object
- Object
- HealthDataStandards::Export::Hdata::Metadata
- Defined in:
- lib/health-data-standards/export/hdata/metadata.rb
Instance Method Summary collapse
- #export(entry, metadata, include_namespace = false) ⇒ Object
-
#initialize ⇒ Metadata
constructor
A new instance of Metadata.
Constructor Details
#initialize ⇒ Metadata
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 |