Class: Chem::KEGG::KCFBond
Instance Attribute Summary collapse
-
#bond_id ⇒ Object
Returns the value of attribute bond_id.
-
#property ⇒ Object
Returns the value of attribute property.
Attributes included from Bond
Instance Method Summary collapse
-
#initialize(line) ⇒ KCFBond
constructor
A new instance of KCFBond.
- #v ⇒ Object
Methods included from Bond
Constructor Details
#initialize(line) ⇒ KCFBond
Returns a new instance of KCFBond.
44 45 46 |
# File 'lib/chem/db/kcf.rb', line 44 def initialize line @line = line end |
Instance Attribute Details
#bond_id ⇒ Object
Returns the value of attribute bond_id.
42 43 44 |
# File 'lib/chem/db/kcf.rb', line 42 def bond_id @bond_id end |
#property ⇒ Object
Returns the value of attribute property.
42 43 44 |
# File 'lib/chem/db/kcf.rb', line 42 def property @property end |
Instance Method Details
#v ⇒ Object
50 |
# File 'lib/chem/db/kcf.rb', line 50 def v ; @v ||= @line[23...25].to_i ; end |