MRTCanonicalUnit

@interface MRTCanonicalUnit : NSObject

Represents a unit with the value and measurement separated.

Summary

Class methods

+ (nonnull MRTCanonicalUnit *)canonicalUnitWithUnit:(nonnull NSString *)unit
                                              value:( double)value;

Properties

@property (nonatomic, readonly, nonnull) NSString *unit;
The unit of measurement

@property (nonatomic, readonly) double value;
The numerical value

Class methods

canonicalUnitWithUnit:value:

+ (nonnull MRTCanonicalUnit *)canonicalUnitWithUnit:(nonnull NSString *)unit
                                              value:( double)value;


Properties

unit

@property (nonatomic, readonly, nonnull) NSString *unit;

The unit of measurement.


value

@property (nonatomic, readonly) double value;

The numerical value.