Sha256: 36b2576f9c809b7a076c9e55ffea9a0cbba9cff3836217d40c045517b3e1b318

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 Bytes

Contents

# frozen_string_literal: true

require_relative "root_unit"

module Unitsdb
  class RootUnits < Lutaml::Model::Serializable
    attribute :unit, :string
    attribute :power_denominator, :integer
    attribute :power_numerator, :integer
    attribute :enumerated_root_units, RootUnit, collection: true

    key_value do
      map :unit, to: :unit
      map :power_denominator, to: :power_denominator
      map :power_numerator, to: :power_numerator
      map :enumerated_root_units,
          to: :enumerated_root_units
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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