Class: Facebooker::GetStream
Overview
:nodoc:
Constant Summary
Constants inherited from Parser
Class Method Summary collapse
Methods inherited from Parser
anonymous_field_from, array_of, array_of_hashes, array_of_text_values, booleanize, element, hash_by_key_or_value_for, hash_or_value_for, hashinate, hashinate_by_key, parse
Class Method Details
.process(data) ⇒ Object
444 445 446 447 448 449 450 |
# File 'lib/facebooker/parser.rb', line 444 def self.process(data) response = {} response[:albums] = array_of_hashes(element('stream_get_response/albums', data), 'album') response[:posts] = array_of_hashes(element('stream_get_response/posts', data), 'stream_post') response[:profile] = array_of_hashes(element('stream_get_response/profiles', data), 'profile') response end |