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_url ⇒ Object
Returns the value of attribute redis_url.
-
#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 |
# File 'lib/mail_room/arbitration/redis.rb', line 7 def initialize(mailbox) redis_url = mailbox.[:redis_url] || "redis://localhost:6379" namespace = mailbox.[:namespace] sentinels = mailbox.[:sentinels] super(redis_url, namespace, sentinels) 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_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 |
#sentinels ⇒ Object
Returns the value of attribute sentinels
6 7 8 |
# File 'lib/mail_room/arbitration/redis.rb', line 6 def sentinels @sentinels end |