Class: Chem::KEGG::KEGGReaction

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

Overview

Duplication definition!

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeKEGGReaction

Returns a new instance of KEGGReaction.



215
216
217
218
# File 'lib/chem/db/kegg.rb', line 215

def initialize
  @ecs = []
  @compounds = []
end

Instance Attribute Details

#compoundsObject

Returns the value of attribute compounds.



214
215
216
# File 'lib/chem/db/kegg.rb', line 214

def compounds
  @compounds
end

#directionObject

Returns the value of attribute direction.



214
215
216
# File 'lib/chem/db/kegg.rb', line 214

def direction
  @direction
end

#ecsObject

Returns the value of attribute ecs.



214
215
216
# File 'lib/chem/db/kegg.rb', line 214

def ecs
  @ecs
end

#entryObject

Returns the value of attribute entry.



214
215
216
# File 'lib/chem/db/kegg.rb', line 214

def entry
  @entry
end

#nameObject

Returns the value of attribute name.



214
215
216
# File 'lib/chem/db/kegg.rb', line 214

def name
  @name
end

Instance Method Details

#kegg=(kegg) ⇒ Object



220
221
222
# File 'lib/chem/db/kegg.rb', line 220

def kegg= kegg
  @kegg = kegg
end

#map_formulaObject



224
225
226
227
# File 'lib/chem/db/kegg.rb', line 224

def map_formula
  return nil unless @kegg.map_formula[@entry]
  @kegg.map_formula[@entry].compounds
end