How to access Hash containing Array of Hashes?

Can anyone give me an example of getting each individual elements of
Hashes containing array of Hashes in httparty parsed response.

Thanks in advance

hash_in_response[‘key’][index_of_array][‘other_key’]

On Mon, Dec 12, 2011 at 04:56:05AM +0900, rubythemystery ruby wrote:

Can anyone give me an example of getting each individual elements of
Hashes containing array of Hashes in httparty parsed response.

Thanks in advance


Posted via http://www.ruby-forum.com/.


Markus S.

Phone: +49 201 / 360 379 14
Fax: +49 201 / 360 379 16
Web: www.seonic.net
Email: [email protected]
Twitter: twitter.com/m_b_j
OS-Code: mbj (Markus Schirp) · GitHub

Markus S. wrote in post #1036192:

hash_in_response[‘key’][index_of_array][‘other_key’]

On Mon, Dec 12, 2011 at 04:56:05AM +0900, rubythemystery ruby wrote:

Can anyone give me an example of getting each individual elements of
Hashes containing array of Hashes in httparty parsed response.

Thanks in advance


Posted via http://www.ruby-forum.com/.


Markus S.

Phone: +49 201 / 360 379 14
Fax: +49 201 / 360 379 16
Web: www.seonic.net
Email: [email protected]
Twitter: twitter.com/m_b_j
OS-Code: mbj (Markus Schirp) · GitHub

Markus

Thanks for your valuable inputs. If I need to check all the indexes,
What I need to do. This is because, I am not sure in which index, my
value will occur.

So, to access all the indexes of array, What i need to do?

Thanks in advance