librevox icon indicating copy to clipboard operation
librevox copied to clipboard

CommandSocket multiple items returned

Open Tarang opened this issue 12 years ago • 0 comments

Im trying this:

st=socket.command("sofia status profile internal reg") st.content => #<Librevox::Response:0x00000001fa3ad8 @headers={:content_type=>"api/response", >:content_length=>"1151"}, @content=....Total items returned: 2 ...

There are multiple items returned but st.content will only display information relating to the last item. How would I get the other items? I think it parses them into ruby objects, but because they have the same names it overwrites the ones down the array and it only shows the last ones

Tarang avatar Jan 21 '13 12:01 Tarang