Sha256: ab51a06b05504e4a099faf2e63074a1155964543648cac95c66216b2174c6577

Contents?: true

Size: 288 Bytes

Versions: 7

Compression:

Stored size: 288 Bytes

Contents

require 'singleton'
require 'active_support/core_ext/numeric/time'

module Weeter
  class Configuration
    class LimiterConfig
      include Singleton
      attr_writer :enabled
      attr_accessor :max, :duration

      def enabled
        @enabled || false
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
weeter-0.19.4 lib/weeter/configuration/limiter_config.rb
weeter-0.19.3 lib/weeter/configuration/limiter_config.rb
weeter-0.19.2 lib/weeter/configuration/limiter_config.rb
weeter-0.19.1 lib/weeter/configuration/limiter_config.rb
weeter-0.19.0 lib/weeter/configuration/limiter_config.rb
weeter-0.18.0 lib/weeter/configuration/limiter_config.rb
weeter-0.17.0 lib/weeter/configuration/limiter_config.rb