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
-
.get(appid, params: {}) ⇒ Hash
Get News for App.
Class Method Details
.get(appid, params: {}) ⇒ Hash
Get News for App
17 18 19 20 21 22 |
# File 'lib/steam-api/steam/news.rb', line 17 def self.get(appid, params: {}) params[:appid] = appid client.get('GetNewsForApp/v2', params: params) .parse_key('appnews') .parse_key('newsitems') end |