Class: Stew::Store::WebClient

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

Overview

Client wrapper for performing requests to the Steam Store

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ WebClient

Returns a new instance of WebClient.



5
6
7
# File 'lib/stew/store/web_client.rb', line 5

def initialize(uri)
  @connection = WebClient.connection(uri)
end

Instance Method Details

#get(path, options = {}) ⇒ Object



9
10
11
# File 'lib/stew/store/web_client.rb', line 9

def get(path, options={})
  request(path, options).body
end