Module: XMLData
- Included in:
- GameStats, SteamGroup, SteamId
- Defined in:
- lib/steam/community/xml_data.rb
Overview
This class provides basic functionality to parse XML data
Instance Method Summary collapse
-
#parse(url) ⇒ Hash<String, Object>
Parse the given URL as XML data using ‘multi_xml`.
Instance Method Details
#parse(url) ⇒ Hash<String, Object>
Parse the given URL as XML data using ‘multi_xml`
19 20 21 22 |
# File 'lib/steam/community/xml_data.rb', line 19 def parse(url) data = open(url, { :proxy => true }) @xml_data = MultiXml.parse(data).values.first end |