class FaceGroups::Feed

Group feeds, with data and paging information

Attributes

postings[R]

Public Class Methods

new(feed_data:) click to toggle source
# File lib/facegroups/feed.rb, line 10
def initialize(feed_data:)
  postings_data = feed_data['data']
  @postings = postings_data.map do |post_data|
    FaceGroups::Posting.new(data: post_data)
  end

  @pagination = feed_data['pagination']
end

Public Instance Methods

count() click to toggle source
# File lib/facegroups/feed.rb, line 19
def count
  @postings.count
end