Class: PeptidesProteins

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

Overview

ActiveRecord model of MSF PeptidesProteins Join table for Peptides and Proteins HABTM

Example:

PeptidesProteins.first

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.primary_keysObject



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

def self.primary_keys
  [:ProcessingNodeNumber, :PeptideID, :ProteinID]
end

.table_nameObject



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

def self.table_name
  :PeptidesProteins
end

Instance Method Details

#peptide_idObject



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

def peptide_id
  self.PeptideID
end

#processing_node_numberObject



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

def processing_node_number
  self.ProcessingNodeNumber
end

#protein_idObject



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

def protein_id
  self.ProteinID
end