Class: Chromatogram
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Chromatogram
- Defined in:
- lib/msf/models/chromatogram.rb
Overview
ActiveRecord model of MSF Chromatogram
Example:
Chromatogram.find(1)
Chromatogram.all.first.trace_type
Chromatogram.first.file_infos.file_name
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.primary_key ⇒ Object
12 13 14 |
# File 'lib/msf/models/chromatogram.rb', line 12 def self.primary_key [:FileID, :TraceType] end |
.table_name ⇒ Object
9 10 11 |
# File 'lib/msf/models/chromatogram.rb', line 9 def self.table_name :Chromatograms end |
Instance Method Details
#chromatogram ⇒ Object
21 22 23 |
# File 'lib/msf/models/chromatogram.rb', line 21 def chromatogram self.Chromatogram end |
#file_id ⇒ Object
15 16 17 |
# File 'lib/msf/models/chromatogram.rb', line 15 def file_id self.FileID end |
#trace_type ⇒ Object
18 19 20 |
# File 'lib/msf/models/chromatogram.rb', line 18 def trace_type self.TraceType end |