Class: Stew::Community::XmlClientResponseGames
- Inherits:
-
Object
- Object
- Stew::Community::XmlClientResponseGames
- Defined in:
- lib/stew/community/xml_client/xml_client_response_games.rb
Overview
A games response from the Xml Client
Instance Method Summary collapse
- #games ⇒ Object
-
#initialize(response) ⇒ XmlClientResponseGames
constructor
A new instance of XmlClientResponseGames.
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
#games ⇒ Object
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 |