lib/bio/io/keggapi.rb in bio-1.1.0 vs lib/bio/io/keggapi.rb in bio-1.2.0
- old
+ new
@@ -2,11 +2,11 @@
# = bio/io/keggapi.rb - KEGG API access class
#
# Copyright:: Copyright (C) 2003, 2004 Toshiaki Katayama <k@bioruby.org>
# License:: The Ruby License
#
-# $Id: keggapi.rb,v 1.14 2007/04/05 23:35:41 trevor Exp $
+# $Id: keggapi.rb,v 1.15 2007/07/20 21:56:45 k Exp $
#
require 'bio/io/soapwsdl'
require 'uri'
require 'net/http'
@@ -329,9 +329,10 @@
private
def add_filter(results)
if results.is_a?(Array)
results.each do |result|
+ next if result.is_a?(Fixnum)
def result.filter(fields)
fields.collect { |field| self.send(field) }
end
end
end