Sha256: fe219cc93de615ba32fe3c645f8e0e721fe613fdd9ea54811013f67ed184697d

Contents?: true

Size: 480 Bytes

Versions: 2

Compression:

Stored size: 480 Bytes

Contents

require 'livefyre/entity/timeline_cursor'

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
livefyre-1.3.2 lib/livefyre/factory/cursor_factory.rb
livefyre-1.3.0 lib/livefyre/factory/cursor_factory.rb