Class: Ryespy::Listener::Base
- Inherits:
-
Object
- Object
- Ryespy::Listener::Base
- Defined in:
- lib/ryespy/listener/base.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(opts = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(opts = {}) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/ryespy/listener/base.rb', line 9 def initialize(opts = {}) @notifiers = opts[:notifiers] || [] @logger = opts[:logger] || Logger.new(nil) @redis = Redis.current connect_service if block_given? yield self close end end |
Instance Method Details
#close ⇒ Object
24 25 |
# File 'lib/ryespy/listener/base.rb', line 24 def close end |