Class: MailRoom::Arbitration::Redis::Options
- Inherits:
-
Struct
- Object
- Struct
- MailRoom::Arbitration::Redis::Options
- Defined in:
- lib/mail_room/arbitration/redis.rb
Instance Attribute Summary collapse
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#redis_db ⇒ Object
Returns the value of attribute redis_db.
-
#redis_ssl_params ⇒ Object
Returns the value of attribute redis_ssl_params.
-
#redis_url ⇒ Object
Returns the value of attribute redis_url.
-
#sentinel_password ⇒ Object
Returns the value of attribute sentinel_password.
-
#sentinel_username ⇒ Object
Returns the value of attribute sentinel_username.
-
#sentinels ⇒ Object
Returns the value of attribute sentinels.
Instance Method Summary collapse
-
#initialize(mailbox) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(mailbox) ⇒ Options
Returns a new instance of Options.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/mail_room/arbitration/redis.rb', line 7 def initialize(mailbox) redis_url = mailbox.[:redis_url] || "redis://localhost:6379" redis_ssl_params = mailbox.[:redis_ssl_params] redis_db = mailbox.[:redis_db] || 0 namespace = mailbox.[:namespace] sentinels = mailbox.[:sentinels] sentinel_username = mailbox.[:sentinel_username] sentinel_password = mailbox.[:sentinel_password] if namespace warn <<~MSG Redis namespaces are deprecated. This option will be ignored in future versions. See https://github.com/sidekiq/sidekiq/issues/2586 for more details." MSG end super(redis_url, redis_ssl_params, namespace, redis_db, sentinels, sentinel_username, sentinel_password) end |
Instance Attribute Details
#namespace ⇒ Object
Returns the value of attribute namespace
6 7 8 |
# File 'lib/mail_room/arbitration/redis.rb', line 6 def namespace @namespace end |
#redis_db ⇒ Object
Returns the value of attribute redis_db
6 7 8 |
# File 'lib/mail_room/arbitration/redis.rb', line 6 def redis_db @redis_db end |
#redis_ssl_params ⇒ Object
Returns the value of attribute redis_ssl_params
6 7 8 |
# File 'lib/mail_room/arbitration/redis.rb', line 6 def redis_ssl_params @redis_ssl_params end |
#redis_url ⇒ Object
Returns the value of attribute redis_url
6 7 8 |
# File 'lib/mail_room/arbitration/redis.rb', line 6 def redis_url @redis_url end |
#sentinel_password ⇒ Object
Returns the value of attribute sentinel_password
6 7 8 |
# File 'lib/mail_room/arbitration/redis.rb', line 6 def sentinel_password @sentinel_password end |
#sentinel_username ⇒ Object
Returns the value of attribute sentinel_username
6 7 8 |
# File 'lib/mail_room/arbitration/redis.rb', line 6 def sentinel_username @sentinel_username end |
#sentinels ⇒ Object
Returns the value of attribute sentinels
6 7 8 |
# File 'lib/mail_room/arbitration/redis.rb', line 6 def sentinels @sentinels end |