lib/rlimiter.rb in rlimiter-1.0.2 vs lib/rlimiter.rb in rlimiter-1.0.3
- old
+ new
@@ -11,10 +11,10 @@
module Rlimiter
class << self
# At the moment only redis client is supported.
CLIENTS = %w[redis].freeze
- attr_accessor :client
+ attr_reader :client
# One time initializes the client which is to be used throughout the application.
# The value of params variable will change depending on the storage client to be initialized.
# @param [Hash] params
# @return [Rlimiter::Client]