Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/unitsdb/ucum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class UcumBaseUnit < Lutaml::Model::Serializable
attribute :code, :string
attribute :dimension, :string
attribute :name, :string
attribute :print_symbol, :string, raw: true
attribute :print_symbol, :string
attribute :property, :string

xml do
Expand All @@ -20,7 +20,7 @@ class UcumBaseUnit < Lutaml::Model::Serializable
map_attribute "CODE", to: :code
map_attribute "dim", to: :dimension
map_element "name", to: :name
map_element "printSymbol", to: :print_symbol
map_element "printSymbol", to: :print_symbol, raw: :content
map_element "property", to: :property
end

Expand Down Expand Up @@ -53,15 +53,15 @@ class UcumPrefix < Lutaml::Model::Serializable
attribute :code_sensitive, :string
attribute :code, :string
attribute :name, :string
attribute :print_symbol, :string, raw: true
attribute :print_symbol, :string
attribute :value, UcumPrefixValue

xml do
element "prefix"
map_attribute "Code", to: :code_sensitive
map_attribute "CODE", to: :code
map_element "name", to: :name
map_element "printSymbol", to: :print_symbol
map_element "printSymbol", to: :print_symbol, raw: :content
map_element "value", to: :value
end

Expand Down Expand Up @@ -145,7 +145,7 @@ class UcumUnit < Lutaml::Model::Serializable
attribute :is_special, :string
attribute :klass, :string
attribute :name, :string, collection: true
attribute :print_symbol, :string, raw: true
attribute :print_symbol, :string
attribute :property, :string
attribute :value, UcumUnitValue

Expand All @@ -159,7 +159,7 @@ class UcumUnit < Lutaml::Model::Serializable
map_attribute "class", to: :klass

map_element "name", to: :name
map_element "printSymbol", to: :print_symbol
map_element "printSymbol", to: :print_symbol, raw: :content
map_element "property", to: :property
map_element "value", to: :value
end
Expand Down
Loading