Sha256: 3ff5069cb24508346265c69fe66f9c84759602bd078ca1cab1c5c087d07af074

Contents?: true

Size: 588 Bytes

Versions: 1

Compression:

Stored size: 588 Bytes

Contents

# frozen_string_literal: true

require_relative "prefix_symbol"
# ---
# NISTp10_30:
#   name: quetta
#   symbol:
#     ascii: Q
#     html: Q
#     latex: Q
#     unicode: Q
#   base: 10
#   power: 30

module Unitsdb
  class Prefix < Lutaml::Model::Serializable
    attribute :id, :string
    attribute :name, :string
    attribute :symbol, PrefixSymbol
    attribute :base, :integer
    attribute :power, :integer

    key_value do
      map :id, to: :id
      map :name, to: :name
      map :symbol, to: :symbol
      map :base, to: :base
      map :power, to: :power
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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