Method: Facebooker::FqlQuery.process

Defined in:
lib/facebooker/parser.rb

.process(data) ⇒ Object



406
407
408
409
410
# File 'lib/facebooker/parser.rb', line 406

def self.process(data)
  root = element('fql_query_response', data)
  first_child = root.children.reject{|c| c.text? }.first
  first_child.nil? ? [] : [first_child.name, array_of_hashes(root, first_child.name)]
end