lib/halo-reach-api.rb in halo-reach-api-1.0.1 vs lib/halo-reach-api.rb in halo-reach-api-1.0.2

- old
+ new

@@ -5,11 +5,11 @@ module Halo module Reach class API include HTTParty - VERSION = '1.0.1'.freeze + VERSION = '1.0.2'.freeze API_URL = 'http://www.bungie.net/api/reach/reachapijson.svc/' DEFAULT_HEADERS = { 'User-Agent' => "Halo:Reach API gem #{VERSION}" } @@ -31,9 +31,13 @@ end def set_http_headers(http_headers = {}) http_headers.merge!(DEFAULT_HEADERS) headers(http_headers) + end + + def set_timeout(timeout) + default_timeout(timeout) end def get_game_metadata game_metadata_uri = "game/metadata/#{@token}" self.class.get(@api_url + game_metadata_uri)