This is the output from doing puts get_account_entry.inspect
[[{:value=>"8b08e26a-6d35-7140-9e41-4c5b4612c146", :name=>"id"}, {:value=>"Typhoon Corporation", :name=>"name"}]]
How do I extract out the value of :name => "id" for example? Originally I thought it was like a hash, so get_account_entry[id] would produce the result, but it doesn't which makes sense on closer inspection.
But then how do I get at the values?
Chuck got me on the right path, but still need help:
puts get_account_entry[0].map {|hash| [hash[:name], hash[:value]] }
This is the output in the ruby console:
> id
> 8b08e26a-6d35-7140-9e41-4c5b4612c146
> name
> Typhoon Corporation