Class: Chromatogram

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



12
13
14
# File 'lib/msf/models/chromatogram.rb', line 12

def self.primary_key
  [:FileID, :TraceType]
end

.table_nameObject



9
10
11
# File 'lib/msf/models/chromatogram.rb', line 9

def self.table_name
  :Chromatograms
end

Instance Method Details

#chromatogramObject



21
22
23
# File 'lib/msf/models/chromatogram.rb', line 21

def chromatogram
  self.Chromatogram
end

#file_idObject



15
16
17
# File 'lib/msf/models/chromatogram.rb', line 15

def file_id
  self.FileID
end

#trace_typeObject



18
19
20
# File 'lib/msf/models/chromatogram.rb', line 18

def trace_type
  self.TraceType
end