Class: Enzyme

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

Overview

ActiveRecord model of MSF Enzyme

Example:

Enzyme.find(1)

Enzyme.all.first.name

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.primary_keyObject



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

def self.primary_key
  :EnzymeID
end

.table_nameObject



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

def self.table_name
  :Enzymes
end

Instance Method Details

#abbreviationObject



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

def abbreviation
  self.Abbreviation
end

#enzyme_idObject



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

def enzyme_id
  self.EnzymeID
end

#nameObject



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

def name
  self.Name
end

#non_seperatorObject



26
27
28
# File 'lib/msf/models/enzyme.rb', line 26

def non_seperator
  self.NonSeperator
end

#offsetObject



29
30
31
# File 'lib/msf/models/enzyme.rb', line 29

def offset
  self.Offset
end

#seperatorObject



23
24
25
# File 'lib/msf/models/enzyme.rb', line 23

def seperator
  self.Seperator
end