Module: Metanorma::StandardDocument::Metadata::Unitsml::BaseQuantityXmlMapping
- Defined in:
- lib/metanorma/standard_document/metadata/unitsml/base_quantity.rb
Overview
Shared attribute mappings for the base-quantity elements.
lutaml-model does not inherit xml mappings, so each per-tag class
applies this inside its own xml do block (same pattern as
StandardDocument::RootXmlMapping).
Class Method Summary collapse
Class Method Details
.apply(mapping) ⇒ Object
25 26 27 28 29 |
# File 'lib/metanorma/standard_document/metadata/unitsml/base_quantity.rb', line 25 def self.apply(mapping) mapping.map_attribute "symbol", to: :symbol mapping.map_attribute "powerNumerator", to: :power_numerator mapping.map_attribute "powerDenominator", to: :power_denominator end |