Class: UN::Data::HostAdaptor
- Inherits:
-
Object
- Object
- UN::Data::HostAdaptor
- Defined in:
- lib/un/data/host_adaptor.rb
Instance Method Summary collapse
Instance Method Details
#get(uri) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/un/data/host_adaptor.rb', line 7 def get(uri) result = Net::HTTP.start(uri.host, uri.port) do |http| http.get "#{uri.path}?#{uri.query}" end result.body end |