Class: M9t::Pressure

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/m9t/pressure.rb

Overview

Represents atmospheric (or other) pressure

Constant Summary collapse

DEFAULT_OPTIONS =
{units: :bar, abbreviated: false, precision: 5}
CONVERSIONS =
{
  bar:               1.0,
  pascals:           1.0 / 0.00001,
  hectopascals:      1.0 / 0.001,
  kilopascals:       1.0 / 0.01,
  inches_of_mercury: 1.0 / (3386.389 * 0.00001)
}

Instance Attribute Summary

Attributes included from Base

#options, #value

Method Summary

Methods included from Base

add_options, generate_conversions, included, #initialize, #method_missing, #respond_to?, #to_s

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class M9t::Base