Sha256: f89e7524a2cab88b5164aea77a4e225ae74b2cf30041753ae941b9b80be6665e

Contents?: true

Size: 833 Bytes

Versions: 1

Compression:

Stored size: 833 Bytes

Contents

# frozen_string_literal: true

# # Quantities
# NISTq156:
#   dimension_url: "#NISTd68"
#   quantity_type: derived
#   quantity_name:
#       - linear expansion coefficient
#   unit_reference:
#       - name: kelvin to the power minus one
#         url: "#NISTu5e-1/1"

# NISTq155:
#   dimension_url: "#NISTd57"
#   quantity_type: derived
#   quantity_name:
#     - area moment of inertia
#     - second moment of area
#   unit_reference:
#     - name: inch to the fourth power
#       url: "#NISTu208"

require_relative "unit_reference"

module Unitsdb
  class Quantity < Lutaml::Model::Serializable
    attribute :id, :string
    attribute :dimension_url, :string
    attribute :quantity_type, :string
    attribute :quantity_name, :string, collection: true
    attribute :unit_reference, UnitReference, collection: true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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