Class: Facebooker::GroupGetMembers
- Defined in:
- lib/facebooker/parser.rb
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
359 360 361 362 363 364 365 366 367 368 |
# File 'lib/facebooker/parser.rb', line 359 def self.process(data) root = element('groups_getMembers_response', data) result = ['members', 'admins', 'officers', 'not_replied'].map do |position| array_of(root, position) {|element| element}.map do |element| array_of_text_values(element, 'uid').map do |uid| {:position => position}.merge(:uid => uid) end end end.flatten end |