Sha256: 828b058c03284ba364e8afa195afc1e9a33ec4659dd83cae9b4d5203c81fe92c

Contents?: true

Size: 670 Bytes

Versions: 17

Compression:

Stored size: 670 Bytes

Contents

# -*- encoding: utf-8 -*-
# -*- frozen_string_literal: true -*-
# -*- warn_indent: true -*-

UnitMeasurements::Power = UnitMeasurements.build do
  primitive "W"

  system :metric do
    si_unit "W", aliases: ["watt", "watts"]

    unit "hp (M)", value: "735.49875 W", aliases: ["PS", "metric horsepower"]
  end

  system :imperial do
    unit "hp", value: "745.69987158227022 W", aliases: ["hp (I)", "horsepower"]
  end

  system :centimetre_gram_second do
    unit "erg/s", value: "1e-7 W", aliases: ["erg·s⁻¹", "erg per second", "ergs per second"]
  end

  unit "cal/s", value: "4.1868 W", aliases: ["cal·s⁻¹", "calorie per second", "calories per second"]
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
unit_measurements-5.6.0 lib/unit_measurements/unit_groups/power.rb
unit_measurements-5.5.0 lib/unit_measurements/unit_groups/power.rb
unit_measurements-5.4.1 lib/unit_measurements/unit_groups/power.rb
unit_measurements-5.4.0 lib/unit_measurements/unit_groups/power.rb
unit_measurements-5.3.0 lib/unit_measurements/unit_groups/power.rb
unit_measurements-5.2.0 lib/unit_measurements/unit_groups/power.rb
unit_measurements-5.1.1 lib/unit_measurements/unit_groups/power.rb
unit_measurements-5.1.0 lib/unit_measurements/unit_groups/power.rb
unit_measurements-5.0.0 lib/unit_measurements/unit_groups/power.rb
unit_measurements-4.12.0 lib/unit_measurements/unit_groups/power.rb
unit_measurements-4.11.0 lib/unit_measurements/unit_groups/power.rb
unit_measurements-4.10.0 lib/unit_measurements/unit_groups/power.rb
unit_measurements-4.9.0 lib/unit_measurements/unit_groups/power.rb
unit_measurements-4.8.0 lib/unit_measurements/unit_groups/power.rb
unit_measurements-4.7.0 lib/unit_measurements/unit_groups/power.rb
unit_measurements-4.6.0 lib/unit_measurements/unit_groups/power.rb
unit_measurements-4.5.0 lib/unit_measurements/unit_groups/power.rb