Class: Chem::KEGG::KeggDirectory::KeggGene

Inherits:
Object
  • Object
show all
Defined in:
lib/chem/db/kegg.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gene, organism, kegg) ⇒ KeggGene

Returns a new instance of KeggGene.



149
150
151
152
153
# File 'lib/chem/db/kegg.rb', line 149

def initialize gene, organism, kegg
  @gene = gene
  @organism = organism
  @kegg = kegg
end

Instance Attribute Details

#geneObject (readonly)

Returns the value of attribute gene.



148
149
150
# File 'lib/chem/db/kegg.rb', line 148

def gene
  @gene
end

#organismObject (readonly)

Returns the value of attribute organism.



148
149
150
# File 'lib/chem/db/kegg.rb', line 148

def organism
  @organism
end

Instance Method Details

#ec_numberObject



155
156
157
# File 'lib/chem/db/kegg.rb', line 155

def ec_number
  @kegg.get_ec_number(self).inspect
end