Class: Ryespy::Listener::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/ryespy/listener/base.rb

Direct Known Subclasses

AmznS3, FTP, GoogCS, IMAP, RaxCF

Instance Method Summary collapse

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

#closeObject



24
25
# File 'lib/ryespy/listener/base.rb', line 24

def close
end