Class | Bio::KEGG::DRUG |
In: |
lib/bio/db/kegg/drug.rb
|
Parent: | KEGGDB |
Bio::KEGG::DRUG is a parser class for the KEGG DRUG database entry. KEGG DRUG is a drug information database.
DELIMITER | = | RS = "\n///\n" |
TAGSIZE | = | 12 |
Creates a new Bio::KEGG::DRUG object.
Arguments:
Returns: | Bio::KEGG::DRUG object |
# File lib/bio/db/kegg/drug.rb, line 45 45: def initialize(entry) 46: super(entry, TAGSIZE) 47: end
Molecular weight described in the MASS line.
Returns: | Float |
# File lib/bio/db/kegg/drug.rb, line 80 80: def mass 81: field_fetch('MASS').to_f 82: end