git://source.jalview.org
/
jalview.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
81f0c76b571e535ff186d75a4ab36d44cc8f7477
[jalview.git]
/
forester
/
ruby
/
evoruby
/
lib
/
evo
/
io
/
web
/
uniprotkb.rb
1
2
require 'net/http'
3
require 'uri'
4
5
module Evoruby
6
7
8
class UniprotKB
9
def initialize
10
11
end
12
13
def get
14
require 'net/http'
15
require 'uri'
16
17
uri = URI.parse("http://www.ebi.ac.uk/Tools/dbfetch/dbfetch?db=uniprotkb;id=1433X_MAIZE;format=uniprot;style=raw")
18
response = Net::HTTP.get_response uri
19
puts response.body
20
21
end
22
23
end
24
25
end