Class: Spectrum

Inherits:
ActiveRecord::Base
  • Object
show all
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_keyObject



11
12
13
# File 'lib/msf/models/spectrum.rb', line 11

def self.primary_key
  :UniqueSpectrumID
end

.table_nameObject



8
9
10
# File 'lib/msf/models/spectrum.rb', line 8

def self.table_name
  :Spectra
end

Instance Method Details

#spectrumObject



17
18
19
# File 'lib/msf/models/spectrum.rb', line 17

def spectrum
  self.Spectrum
end

#spectrum_hash_codeObject



20
21
22
# File 'lib/msf/models/spectrum.rb', line 20

def spectrum_hash_code
  self.SpectrumHashCode
end

#unique_spectrum_idObject



14
15
16
# File 'lib/msf/models/spectrum.rb', line 14

def unique_spectrum_id
  self.UniqueSpectrumID
end