Method: Facebooker::FqlQuery.process

Defined in:
lib/facebooker/parser.rb

.process(data) ⇒ Object



519
520
521
522
523
# File 'lib/facebooker/parser.rb', line 519

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