Class: VORuby::STC::V1_10::Coords::SpectralUnit

Inherits:
Unit show all
Defined in:
lib/voruby/stc/1.10/coords.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



63
64
65
66
67
68
69
# File 'lib/voruby/stc/1.10/coords.rb', line 63

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