Sha256: db300a37bc9feb9774d3468f293d24810af279123262c0fb0e661faa73128bbc

Contents?: true

Size: 488 Bytes

Versions: 3

Compression:

Stored size: 488 Bytes

Contents

require 'livefyre/cursor/timeline_cursor'

module Livefyre
  class CursorFactory
    def self.get_topic_stream_cursor(core, topic, limit=50, date=Time.new)
      resource = "#{topic.id}:topicStream"
      TimelineCursor::init(core, resource, limit, date)
    end

    def self.get_personal_stream_cursor(network, user, limit=50, date=Time.new)
      resource = "#{network.get_urn_for_user(user)}:personalStream"
      TimelineCursor::init(network, resource, limit, date)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
livefyre-2.0.2 lib/livefyre/factory/cursor_factory.rb
livefyre-2.0.1 lib/livefyre/factory/cursor_factory.rb
livefyre-2.0.0 lib/livefyre/factory/cursor_factory.rb