class FansWatch::Feed

Page feeds, with data and paging information

Attributes

postings[R]

Public Class Methods

new(feed_data:) click to toggle source
# File lib/fanswatch/feed.rb, line 10
def initialize(feed_data:)
  raw_feed = FansWatch::FbApi.page_feed(feed_data)
  @postings = raw_feed.map do |post_data|
    FansWatch::Posting.new(data: post_data)
  end

end

Public Instance Methods

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