Class: Stew::Community::WebClient
- Inherits:
-
Object
- Object
- Stew::Community::WebClient
- Defined in:
- lib/stew/community/web_client.rb
Instance Method Summary collapse
- #get(uri) ⇒ Object
-
#initialize(uri) ⇒ WebClient
constructor
A new instance of WebClient.
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 |