in progress
[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