Class: Chem::KEGG::KCFBond

Inherits:
Object
  • Object
show all
Includes:
Bond
Defined in:
lib/chem/db/kcf.rb

Instance Attribute Summary collapse

Attributes included from Bond

#kcf_prop

Instance Method Summary collapse

Methods included from Bond

#kcf_line

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_idObject

Returns the value of attribute bond_id.



42
43
44
# File 'lib/chem/db/kcf.rb', line 42

def bond_id
  @bond_id
end

#propertyObject

Returns the value of attribute property.



42
43
44
# File 'lib/chem/db/kcf.rb', line 42

def property
  @property
end

Instance Method Details

#vObject



50
# File 'lib/chem/db/kcf.rb', line 50

def v        ; @v        ||= @line[23...25].to_i ; end