Class: Bio::KEGG::KGML::Relation

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/db/kegg/kgml.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name.



135
136
137
# File 'lib/bio/db/kegg/kgml.rb', line 135

def name
  @name
end

#node1Object

Returns the value of attribute node1.



134
135
136
# File 'lib/bio/db/kegg/kgml.rb', line 134

def node1
  @node1
end

#node2Object

Returns the value of attribute node2.



134
135
136
# File 'lib/bio/db/kegg/kgml.rb', line 134

def node2
  @node2
end

#relObject

Returns the value of attribute rel.



134
135
136
# File 'lib/bio/db/kegg/kgml.rb', line 134

def rel
  @rel
end

#valueObject

Returns the value of attribute value.



135
136
137
# File 'lib/bio/db/kegg/kgml.rb', line 135

def value
  @value
end

Instance Method Details

#edgeObject



136
137
138
# File 'lib/bio/db/kegg/kgml.rb', line 136

def edge
  @value.to_i
end