Module: Steam::News
- Defined in:
- lib/steam-api/steam/news.rb
Overview
A Ruby DSL for communicating with the Steam Web API.
Class Method Summary collapse
- .client ⇒ Object
-
.get(appid, params: {}) ⇒ Hash
Get News for App.
Class Method Details
.client ⇒ Object
28 29 30 |
# File 'lib/steam-api/steam/news.rb', line 28 def self.client build_client 'ISteamNews' end |
.get(appid, params: {}) ⇒ Hash
Get News for App
21 22 23 24 25 26 |
# File 'lib/steam-api/steam/news.rb', line 21 def self.get(appid, params: {}) params[:appid] = appid client.get('GetNewsForApp/v2', params: params) .parse_key('appnews') .parse_key('newsitems') end |