Class: AminoAcidModificationsAminoAcidNLs

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

Overview

ActiveRecord model of MSF AminoAcidModificationsAminoAcidNLs Join table for AminoAcid and AminoAcidModificationsNeutralLosses HABTM

Example:

AminoAcidModificationsAminoAcidNLs.first

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.primary_keyObject



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

def self.primary_key
  [:AminoAcidModificationID, :AminoAcidID, :NeutralLossID]
end

.table_nameObject



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

def self.table_name
  :AminoAcidModificationsAminoAcidsNL
end

Instance Method Details

#amino_acid_idObject



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

def amino_acid_id
  self.AminoAcidID
end

#amino_acid_modification_idObject



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

def amino_acid_modification_id
  self.AminoAcidModificationID
end

#neutral_loss_idObject



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

def neutral_loss_id
  self.NeutralLossID
end