Class: VORuby::STC::V1_30::SpectralUnitType

Inherits:
UnitType show all
Defined in:
lib/voruby/stc/1.30/stc.rb

Overview

Spectral units may be frequency (Hz, kHz, MHz, GHz), wavelength (meters, mm, micron, nm, Angstrom), or energy (eV, keV, MeV, GeV, TeV)

Instance Attribute Summary

Attributes inherited from Enumeration

#choices, #value

Class Method Summary collapse

Methods inherited from Enumeration

#==, #initialize, #to_s

Constructor Details

This class inherits a constructor from Enumeration

Class Method Details

.choicesObject



65
66
67
68
69
# File 'lib/voruby/stc/1.30/stc.rb', line 65

def self.choices
  ['Hz', 'kHz', 'MHz', 'GHz',
   'm', 'mm', 'um', 'nm', 'Angstrom',
   'eV', 'keV', 'MeV', 'GeV', 'TeV']
end