Sha256: ead73657f72acca86ff940db3f5175947987db02523aed4f7188be700ead0036

Contents?: true

Size: 389 Bytes

Versions: 6

Compression:

Stored size: 389 Bytes

Contents

require 'active_support'
require 'active_support/core_ext'
require 'retrobot/tweet_filters/base'

class Retrobot
  module TweetFilters
    class RetroDays < Base
      def initialize(retrobot)
        super
      end

      def filter(tweet)
        if tweet.timestamp > config.retro_days.ago
          raise RetryLater
        else
          tweet
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
retrobot-0.3.5 lib/retrobot/tweet_filters/retro_days.rb
retrobot-0.3.4 lib/retrobot/tweet_filters/retro_days.rb
retrobot-0.3.3 lib/retrobot/tweet_filters/retro_days.rb
retrobot-0.3.2 lib/retrobot/tweet_filters/retro_days.rb
retrobot-0.3.1 lib/retrobot/tweet_filters/retro_days.rb
retrobot-0.3.0 lib/retrobot/tweet_filters/retro_days.rb