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.



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

#geneObject (readonly)

Returns the value of attribute gene.



114
115
116
# File 'lib/chem/db/kegg.rb', line 114

def gene
  @gene
end

#organismObject (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_numberObject



121
122
123
# File 'lib/chem/db/kegg.rb', line 121

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