Class: Facebooker::FqlQuery
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, element, hash_or_value_for, hashinate, parse
Class Method Details
.process(data) ⇒ Object
346 347 348 349 350 |
# File 'lib/facebooker/parser.rb', line 346 def self.process(data) root = element('fql_query_response', data) first_child = root.children.reject{|c| c.kind_of?(REXML::Text)}.first first_child.nil? ? [] : [first_child.name, array_of_hashes(root, first_child.name)] end |