Class: Chem::KEGG::KeggDirectory::KeggGene
- Inherits:
-
Object
- Object
- Chem::KEGG::KeggDirectory::KeggGene
- Defined in:
- lib/chem/db/kegg.rb
Instance Attribute Summary collapse
-
#gene ⇒ Object
readonly
Returns the value of attribute gene.
-
#organism ⇒ Object
readonly
Returns the value of attribute organism.
Instance Method Summary collapse
- #ec_number ⇒ Object
-
#initialize(gene, organism, kegg) ⇒ KeggGene
constructor
A new instance of KeggGene.
Constructor Details
#initialize(gene, organism, kegg) ⇒ KeggGene
Returns a new instance of KeggGene.
115 116 117 118 119 |
# File 'lib/chem/db/kegg.rb', line 115 def initialize gene, organism, kegg @gene = gene @organism = organism @kegg = kegg end |
Instance Attribute Details
#gene ⇒ Object (readonly)
Returns the value of attribute gene.
114 115 116 |
# File 'lib/chem/db/kegg.rb', line 114 def gene @gene end |
#organism ⇒ Object (readonly)
Returns the value of attribute organism.
114 115 116 |
# File 'lib/chem/db/kegg.rb', line 114 def organism @organism end |
Instance Method Details
#ec_number ⇒ Object
121 122 123 |
# File 'lib/chem/db/kegg.rb', line 121 def ec_number @kegg.get_ec_number(self).inspect end |