Class: AminoAcidModificationNeutralLoss

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

Overview

ActiveRecord model of MSF AminoAcidModificationsNeutralLoss

Example:

AminoAcidModificationNeutralLoss.find(1)

AminoAcidModificationNeutralLoss.first

AminoAcidModificationNeutralLoss.first.amino_acids.first.monoisotopic_mass

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.primary_keyObject



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

def self.primary_key
  :NeutralLossID
end

.table_nameObject



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

def self.table_name
  :AminoAcidModificationsNeutralLosses
end

Instance Method Details

#average_massObject



24
25
26
# File 'lib/msf/models/amino_acid_modification_neutral_loss.rb', line 24

def average_mass
  self.AverageMass
end

#monoisotopic_massObject



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

def monoisotopic_mass
  self.MonoisotopicMass
end

#nameObject



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

def name
  self.Name
end

#neutral_loss_idObject



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

def neutral_loss_id
  self.NeutralLossID
end