Class: Bio::KEGG::KGML::SubstrateProduct
- Defined in:
- lib/bio/db/kegg/kgml.rb
Overview
Bio::KEGG::KGML::SubstrateProduct contains a substrate element or a product element in the KGML.
Please do not use SubstrateProduct directly. Instead, please use Substrate or Product class.
Instance Attribute Summary collapse
-
#id ⇒ Object
ID of this substrate or product (Integer or nil).
-
#name ⇒ Object
name of this substrate or product (String or nil).
Instance Method Summary collapse
-
#initialize(id = nil, name = nil) ⇒ SubstrateProduct
constructor
Creates a new object.
Constructor Details
#initialize(id = nil, name = nil) ⇒ SubstrateProduct
Creates a new object
516 517 518 519 |
# File 'lib/bio/db/kegg/kgml.rb', line 516 def initialize(id = nil, name = nil) @id ||= id @name ||= name end |