Class: CustomDataSpectrum

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/msf/models/custom_data_spectrum.rb

Overview

ActiveRecord model of MSF CustomDataSpectrum

Example:

CustomDataSpectrum.find(1)

CustomDataSpectrum.first.field_value

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.primary_keyObject



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

def self.primary_key
  [:FieldID, :SpectrumID]
end

.table_nameObject



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

def self.table_name
  :CustomDataSpectra
end

Instance Method Details

#field_idObject



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

def field_id
  self.FieldID
end

#field_valueObject



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

def field_value
  self.FieldValue
end

#spectrum_idObject



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

def spectrum_id
  self.SpectrumID
end