Class: Stew::Community::XmlClientResponseGames

Inherits:
Object
  • Object
show all
Defined in:
lib/stew/community/xml_client/xml_client_response_games.rb

Overview

A games response from the Xml Client

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ XmlClientResponseGames

Returns a new instance of XmlClientResponseGames.



5
6
7
# File 'lib/stew/community/xml_client/xml_client_response_games.rb', line 5

def initialize(response)
  @response = response
end

Instance Method Details

#gamesObject



9
10
11
# File 'lib/stew/community/xml_client/xml_client_response_games.rb', line 9

def games
  has_games? ? @response['gamesList']['games']['game'] : []
end