Module: Twitch::Client::Games
- Included in:
- Twitch::Client
- Defined in:
- lib/twitch/client/games.rb
Overview
API method for games
Instance Method Summary collapse
- #get_game_analytics(options = {}) ⇒ Object
- #get_games(options = {}) ⇒ Object
- #get_top_games(options = {}) ⇒ Object
Instance Method Details
#get_game_analytics(options = {}) ⇒ Object
15 16 17 |
# File 'lib/twitch/client/games.rb', line 15 def get_game_analytics( = {}) initialize_response GameAnalytic, get('analytics/games', ) end |
#get_games(options = {}) ⇒ Object
7 8 9 |
# File 'lib/twitch/client/games.rb', line 7 def get_games( = {}) initialize_response Game, get('games', ) end |
#get_top_games(options = {}) ⇒ Object
11 12 13 |
# File 'lib/twitch/client/games.rb', line 11 def get_top_games( = {}) initialize_response Game, get('games/top', ) end |