crawlers/lib/facebook_crawler.rb
# gets and processes 'limit' elements from a group with a given group_id
# returns an enumerator with the resulting elements
gets and processes 'limit' elements from a group with a given group_id
returns an enumerator with the resulting elements
gets and processes ' limit ' elements from a group with a given group_id returns an enumerator with the resulting elements
def group_feed(group_id, limit)
    Enumerator.new do |y|
      processed = 0
      current_page = group_raw_feed(group_id, @page_size)
      until current_page.empty? || (processed >= limit)
        current_page.each do |element|
          y << element
          processed = processed + 1
        end
        current_page = current_page.next_page
      end
    end
  end
def group_feed ( group_id , limit ) Enumerator . new do | y | processed = 0 current_page = group_raw_feed ( group_id , @page_size ) until current_page . empty? || ( processed >= limit ) current_page . each do | element | y << element processed = processed + 1 end current_page = current_page . next_page end end end
gets and processes 'limit' elements from a group with a given group_id
returns an enumerator with the resulting elements
gets and processes ' limit ' elements from a group with a given group_id returns an enumerator with the resulting elements
group_id
<not_specific>
limit
<not_specific>