Class: AminoAcidModificationsAminoAcids

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

Overview

ActiveRecord model of MSF AminoAcidModificationsAminoAcids Join table for AminoAcid and AminoAcidModification HABTM

Example:

AminoAcidModificationsAminoAcids.first.classification

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.primary_keyObject



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

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

.table_nameObject



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

def self.table_name
  :AminoAcidModificationsAminoAcids
end

Instance Method Details

#amino_acid_idObject



17
18
19
# File 'lib/msf/models/amino_acid_modifications_amino_acids.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_acids.rb', line 14

def amino_acid_modification_id
  self.AminoAcidModificationID
end

#classificationObject



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

def classification
  self.Classification
end