Class: ProteinAnnotation
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ProteinAnnotation
- Defined in:
- lib/msf/models/protein_annotation.rb
Overview
ActiveRecord model of MSF ProteinAnnotation
Example:
ProteinAnnotation.first.description
Class Method Summary collapse
Instance Method Summary collapse
- #accession ⇒ Object
- #description ⇒ Object
- #description_hash_code ⇒ Object
- #protein_annotation_id ⇒ Object
- #protein_id ⇒ Object
- #taxonomy_id ⇒ Object
Class Method Details
.primary_key ⇒ Object
10 11 12 |
# File 'lib/msf/models/protein_annotation.rb', line 10 def self.primary_key :ProteinAnnotationID end |
.table_name ⇒ Object
7 8 9 |
# File 'lib/msf/models/protein_annotation.rb', line 7 def self.table_name :ProteinAnnotations end |
Instance Method Details
#accession ⇒ Object
28 29 30 |
# File 'lib/msf/models/protein_annotation.rb', line 28 def accession self.description.split('|')[1] end |
#description ⇒ Object
22 23 24 |
# File 'lib/msf/models/protein_annotation.rb', line 22 def description self.Description end |
#description_hash_code ⇒ Object
19 20 21 |
# File 'lib/msf/models/protein_annotation.rb', line 19 def description_hash_code self.DescriptionHashCode end |
#protein_annotation_id ⇒ Object
13 14 15 |
# File 'lib/msf/models/protein_annotation.rb', line 13 def protein_annotation_id self.ProteinAnnotationID end |
#protein_id ⇒ Object
16 17 18 |
# File 'lib/msf/models/protein_annotation.rb', line 16 def protein_id self.ProteinID end |
#taxonomy_id ⇒ Object
25 26 27 |
# File 'lib/msf/models/protein_annotation.rb', line 25 def taxonomy_id self.TaxonomyID end |