class Facebooker::FqlQuery

Public Class Methods

process(data) click to toggle source
# File lib/facebooker/parser.rb, line 527
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