Class: Stew::Community::WebClient

Inherits:
Object
  • Object
show all
Defined in:
lib/stew/community/web_client.rb

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ WebClient

Returns a new instance of WebClient.



4
5
6
# File 'lib/stew/community/web_client.rb', line 4

def initialize(uri)
  @connection = self.class.connection(uri)
end

Instance Method Details

#get(uri) ⇒ Object



8
9
10
# File 'lib/stew/community/web_client.rb', line 8

def get(uri)
  request(uri).body
end