module TwitterFriendly::REST::Favorites
Constants
- MAX_TWEETS_PER_REQUEST
Public Instance Methods
favorites(*args)
click to toggle source
# File lib/twitter_friendly/rest/favorites.rb, line 7 def favorites(*args) options = {count: MAX_TWEETS_PER_REQUEST}.merge(args.extract_options!) args << options if options[:count] <= MAX_TWEETS_PER_REQUEST @twitter.favorites(*args)&.map(&:attrs) else fetch_tweets_with_max_id(__method__, MAX_TWEETS_PER_REQUEST, *args) end end