Class: MassPeak

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

Overview

ActiveRecord model of MSF MassPeak

Example:

MassPeak.find(1)
MassPeak.first.charge

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.primary_keyObject



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

def self.primary_key
  :MassPeakID
end

.table_nameObject



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

def self.table_name
  :MassPeaks
end

Instance Method Details

#chargeObject



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

def charge
  self.Charge
end

#file_idObject



29
30
31
# File 'lib/msf/models/mass_peak.rb', line 29

def file_id
  self.FileID
end

#intensityObject



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

def intensity
  self.Intensity
end

#massObject



23
24
25
# File 'lib/msf/models/mass_peak.rb', line 23

def mass
  self.Mass
end

#mass_peak_idObject



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

def mass_peak_id
  self.MassPeakID
end

#scan_numbersObject



26
27
28
# File 'lib/msf/models/mass_peak.rb', line 26

def scan_numbers
  self.ScanNumbers
end