Class: Chem::SMBL::SMBLReaction

Inherits:
Object
  • Object
show all
Defined in:
lib/chem/db/smbl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, reversible) ⇒ SMBLReaction

Returns a new instance of SMBLReaction.


24
25
26
27
28
29
# File 'lib/chem/db/smbl.rb', line 24

def initialize name, reversible
  @name = name
  @reversible = reversible
  @reactants = []
  @products = []
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name


23
24
25
# File 'lib/chem/db/smbl.rb', line 23

def name
  @name
end

#productsObject (readonly)

Returns the value of attribute products


23
24
25
# File 'lib/chem/db/smbl.rb', line 23

def products
  @products
end

#reactantsObject (readonly)

Returns the value of attribute reactants


23
24
25
# File 'lib/chem/db/smbl.rb', line 23

def reactants
  @reactants
end