Sha256: b225192956311020294d1339925241f655af249b397f162cb1fbdf1892ddc1bc

Contents?: true

Size: 505 Bytes

Versions: 1

Compression:

Stored size: 505 Bytes

Contents

# frozen_string_literal: true

require_relative "unit_system"

module Unitsdb
  class UnitSystems < Lutaml::Model::Serializable
    attribute :unit_system, UnitSystem, collection: true

    # TODO: How do I parse this?
    # ---
    # - id: SI_base
    #   name: SI
    #   acceptable: true
    # - id: SI_derived_special
    #   name: SI
    #   acceptable: true
    # - id: SI_derived_non-special

    key_value do
      map to: :unit_system, root_mappings: {
        id: :key
      }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unitsdb-0.1.1 lib/unitsdb/unit_systems.rb