lib/steam-api/steam/news.rb in steam-api-1.1.0 vs lib/steam-api/steam/news.rb in steam-api-1.2.0

- old
+ new

@@ -1,6 +1,5 @@ -# -*- encoding: utf-8 -*- module Steam # A Ruby DSL for communicating with the Steam Web API. # @see https://developer.valvesoftware.com/wiki/Steam_Web_API # @since 1.0.0 module News @@ -20,14 +19,12 @@ # specified by its appID. # @see http://wiki.teamfortress.com/wiki/WebAPI/GetNewsForApp def self.get(appid, params: {}) params[:appid] = appid client.get('GetNewsForApp/v2', params: params) - .parse_key('appnews') - .parse_key('newsitems') + .parse_key('appnews') + .parse_key('newsitems') end - - private def self.client build_client 'ISteamNews' end end