Class: Spectrum
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Spectrum
- Defined in:
- lib/msf/models/spectrum.rb
Overview
ActiveRecord model of MSF Spectrum
Example:
Spectrum.find(1)
Spectrum.first.spectrum
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.primary_key ⇒ Object
11 12 13 |
# File 'lib/msf/models/spectrum.rb', line 11 def self.primary_key :UniqueSpectrumID end |
.table_name ⇒ Object
8 9 10 |
# File 'lib/msf/models/spectrum.rb', line 8 def self.table_name :Spectra end |
Instance Method Details
#spectrum ⇒ Object
17 18 19 |
# File 'lib/msf/models/spectrum.rb', line 17 def spectrum self.Spectrum end |
#spectrum_hash_code ⇒ Object
20 21 22 |
# File 'lib/msf/models/spectrum.rb', line 20 def spectrum_hash_code self.SpectrumHashCode end |
#unique_spectrum_id ⇒ Object
14 15 16 |
# File 'lib/msf/models/spectrum.rb', line 14 def unique_spectrum_id self.UniqueSpectrumID end |