Class: Chem::KEGG::KEGGReaction
- Inherits:
-
Object
- Object
- Chem::KEGG::KEGGReaction
- Includes:
- Reaction
- Defined in:
- lib/chem/db/kegg.rb
Overview
Duplication definition!
Instance Attribute Summary collapse
-
#compounds ⇒ Object
Returns the value of attribute compounds.
-
#direction ⇒ Object
Returns the value of attribute direction.
-
#ecs ⇒ Object
Returns the value of attribute ecs.
-
#entry ⇒ Object
Returns the value of attribute entry.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize ⇒ KEGGReaction
constructor
A new instance of KEGGReaction.
- #kegg=(kegg) ⇒ Object
- #map_formula ⇒ Object
Constructor Details
#initialize ⇒ KEGGReaction
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
#compounds ⇒ Object
Returns the value of attribute compounds.
214 215 216 |
# File 'lib/chem/db/kegg.rb', line 214 def compounds @compounds end |
#direction ⇒ Object
Returns the value of attribute direction.
214 215 216 |
# File 'lib/chem/db/kegg.rb', line 214 def direction @direction end |
#ecs ⇒ Object
Returns the value of attribute ecs.
214 215 216 |
# File 'lib/chem/db/kegg.rb', line 214 def ecs @ecs end |
#entry ⇒ Object
Returns the value of attribute entry.
214 215 216 |
# File 'lib/chem/db/kegg.rb', line 214 def entry @entry end |
#name ⇒ Object
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_formula ⇒ Object
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 |