Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Converts a ProjectX xml parameter list to a hash.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
MIT-LICENSE
README.md
gem-public_cert.pem
xparams.gemspec

README.md

Converting ProjectX parameters to a hash

require 'xparams'

XParams.parse "<params><param var='current_user'>jrobertson</param><param var='page_no'>1</param></params>"
#=&gt; {:current_user=&gt;&quot;jrobertson&quot;, :page_no=&gt;&quot;1&quot;}</pre>

XParams#parse converts an xml parameter list to a hash, as used by ProjectX.

Resources

Something went wrong with that request. Please try again.