How to parse a Mash from LinkedIn to create a Ruby object
I used LinkedIn gem by pengwynn to get authentication from LinkedIn. Everything works fine, and I get a Mash in a callback that looks like this: #<LinkedIn::Mash all=[#<LinkedIn::Mash company=#<LinkedIn::Mash id=1422 industry="Banking" name="Company" size="10,001+ employees" ticker="ABC" type="Public Company"> id=2851554 is_current=true start_date=#<LinkedIn::Mash month=12 year=2008> summary="" title="Boss">] total=1> How can I parse it to something similar to Rails params in order to create a new object from it? Thank you. When you receive list of connections of any sort from LinkedIn, you