Class: Measurements::Unit::Mile

Inherits:
Object
  • Object
show all
Includes:
BaseUnit
Defined in:
lib/measurements/unit/mile.rb

Overview

The implementation of a mile. A mile is a unit that belongs to the imperial unit system.

Constant Summary collapse

UNIT_TYPE =

Type for the Mile unit

Measurements::Type::BASE
UNIT_SYSTEM =

System type for the Mile unit

Measurements::System::IMPERIAL

Instance Attribute Summary

Attributes included from BaseUnit

#quantity, #type

Method Summary

Methods included from BaseUnit

#convert_to, #initialize, #inspect, #smart_convert, #type, #unit, #unit_abbr, #unit_system, #unit_type