Class: Bio::KEGG::KGML::SubstrateProduct

Inherits:
Object
  • Object
show all
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.

Direct Known Subclasses

Product, Substrate

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Instance Attribute Details

#idObject

ID of this substrate or product (Integer or nil)



510
511
512
# File 'lib/bio/db/kegg/kgml.rb', line 510

def id
  @id
end

#nameObject

name of this substrate or product (String or nil)



513
514
515
# File 'lib/bio/db/kegg/kgml.rb', line 513

def name
  @name
end