Method: Bio::Fetch#initialize
- Defined in:
- lib/bio/io/fetch.rb
#initialize(url = 'http://bioruby.org/cgi-bin/biofetch.rb') ⇒ Fetch
Create a new Bio::Fetch server object that can subsequently be queried using the Bio::Fetch#fetch method
Arguments:
-
url: URL of dbfetch server (default = ‘bioruby.org/cgi-bin/biofetch.rb’)
- Returns
-
Bio::Fetch object
75 76 77 78 |
# File 'lib/bio/io/fetch.rb', line 75 def initialize(url = 'http://bioruby.org/cgi-bin/biofetch.rb') @url = url schema, user, @host, @port, reg, @path, = URI.split(@url) end |