lib/totter/client/timelines.rb in totter-0.2.10 vs lib/totter/client/timelines.rb in totter-0.2.11
- old
+ new
@@ -13,11 +13,11 @@
# @option options [Numeric] :limit Number of items to return. Default is 20
# @option options [String] :since A user_id/decision_id pair in the format '1,15' when paging forward
# @option options [String] :until A user_id/decision_id pair in the format '1,15' when paging backwards
# @return [Array] An array of `Hashie::Mash` objects representing decisions
# @example
- # Seesaw.global_timeline(limit: 20, since: '1,15')
+ # Totter.global_timeline(limit: 20, since: '1,15')
def global_timeline(options = DEFAULT_TIMELINE_OPTIONS)
get 'timelines/global', options
end
# Get recent decisions from a hashtag timeline
@@ -27,11 +27,11 @@
# @option options [Numeric] :limit Number of items to return. Default is 20
# @option options [String] :since A user_id/decision_id pair in the format '1,15' when paging forward
# @option options [String] :until A user_id/decision_id pair in the format '1,15' when paging backwards
# @return [Array] An array of `Hashie::Mash` objects representing decisions
# @example
- # Seesaw.global_timeline(limit: 20, since: '1,15')
+ # Totter.global_timeline(limit: 20, since: '1,15')
def hashtag_timeline(hashtag, options = DEFAULT_TIMELINE_OPTIONS)
get 'timelines/global', options.merge({hashtag: hashtag})
end
# Get recent decisions from a sticker timeline
@@ -41,11 +41,11 @@
# @option options [Numeric] :limit Number of items to return. Default is 20
# @option options [String] :since A user_id/decision_id pair in the format '1,15' when paging forward
# @option options [String] :until A user_id/decision_id pair in the format '1,15' when paging backwards
# @return [Array]
# @example
- # Seesaw.global_timeline(limit: 20, since: '1,15')
+ # Totter.global_timeline(limit: 20, since: '1,15')
def sticker_timeline(sticker, options = DEFAULT_TIMELINE_OPTIONS)
get 'timelines/global', options.merge({sticker: sticker})
end
# Search for published items
@@ -55,11 +55,11 @@
# @option options [Numeric] :limit Number of items to return. Default is 20
# @option options [String] :since A user_id/decision_id pair in the format '1,15' when paging forward
# @option options [String] :until A user_id/decision_id pair in the format '1,15' when paging backwards
# @return [Array] An array of `Hashie::Mash` objects representing decisions
# @example
- # Seesaw.global_timeline(limit: 20, since: '1,15')
+ # Totter.global_timeline(limit: 20, since: '1,15')
def search_timeline(query, options = DEFAULT_TIMELINE_OPTIONS)
get 'timelines/search', options.merge({query: query})
end
# Get recent decisions from the flagged-for-review timeline
@@ -68,11 +68,11 @@
# @option options [Numeric] :limit Number of items to return. Default is 20
# @option options [String] :since A user_id/decision_id pair in the format '1,15' when paging forward
# @option options [String] :until A user_id/decision_id pair in the format '1,15' when paging backwards
# @return [Array] An array of `Hashie::Mash` objects representing decisions
# @example
- # Seesaw.global_timeline(limit: 20, since: '1,15')
+ # Totter.global_timeline(limit: 20, since: '1,15')
def flagged_timeline(options = DEFAULT_TIMELINE_OPTIONS)
get 'timelines/flagged', options
end
# Get recent decisions from a given user.
@@ -82,11 +82,11 @@
# @option options [Numeric] :limit Number of items to return. Default is 20
# @option options [String] :since A user_id/decision_id pair in the format '1,15' when paging forward
# @option options [String] :until A user_id/decision_id pair in the format '1,15' when paging backwards
# @return [Array] An array of `Hashie::Mash` objects representing decisions
# @example
- # Seesaw.user_timeline(4, limit: 20, since: '1,15')
+ # Totter.user_timeline(4, limit: 20, since: '1,15')
def user_timeline(user_id, options = DEFAULT_TIMELINE_OPTIONS)
get "users/#{user_id}/timelines/user", options
end
# Get the friends timeline (also known as "feed" or "home") for a given user.
@@ -99,10 +99,10 @@
# @option options [Numeric] :limit Number of items to return. Default is 20
# @option options [String] :since A user_id/decision_id pair in the format '1,15' when paging forward
# @option options [String] :until A user_id/decision_id pair in the format '1,15' when paging backwards
# @return [Array] An array of `Hashie::Mash` objects representing decisions
# @example
- # Seesaw.friends_timeline(4, limit: 20, since: '1,15')
+ # Totter.friends_timeline(4, limit: 20, since: '1,15')
def friends_timeline(user_id, options = DEFAULT_TIMELINE_OPTIONS)
get "users/#{user_id}/timelines/friends", options
end
end
end