Class: PeptidesAminoAcidModifications

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

Overview

ActiveRecord model of MSF PeptidesAminoAcidModifications Join table for Peptides and AminoAcidModifications HABTM

Example:

PeptidesAminoAcidModifications.first.position

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.primary_keyObject



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

def self.primary_key
  # [:AminoAcidModificationID, :PeptideID]
  [:ProcessingNodeNumber, :PeptideID, :AminoAcidModificationID, :Position]
end

.table_nameObject



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

def self.table_name
  :PeptidesAminoAcidModifications
end

Instance Method Details

#amino_acid_modification_idObject



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

def amino_acid_modification_id
  self.AminoAcidModificationID
end

#peptide_idObject



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

def peptide_id
  self.PeptideID
end

#positionObject



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

def position
  self.Position
end

#processing_node_numberObject



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

def processing_node_number
  self.ProcessingNodeNumber
end