Sha256: 54630f01d591b5363153413f6860b33870fba5f65eca67941e8e4e3cb9f91caa

Contents?: true

Size: 249 Bytes

Versions: 1

Compression:

Stored size: 249 Bytes

Contents

# frozen_string_literal: true

require_relative "symbol"

module Unitsdb
  class UnitSymbol < Symbol
    attribute :id, :string
    attribute :mathml, :string

    key_value do
      map :id, to: :id
      map :mathml, to: :mathml
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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