Class: Orefs::Fetcher

Inherits:
Opee::Actor
  • Object
show all
Defined in:
lib/orefs/fetcher.rb

Instance Method Summary (collapse)

Constructor Details

- (Fetcher) initialize(options = {})

A new instance of Fetcher



14
15
16
17
# File 'lib/orefs/fetcher.rb', line 14

def initialize(options={})
  @ftp = nil
  super(options)
end

Instance Method Details

- (Object) close



24
25
26
27
28
# File 'lib/orefs/fetcher.rb', line 24

def close()
  @ftp.close_channel() unless @ftp.nil?
  @ftp = nil
  super()
end

- (Object) set_options(options)



19
20
21
22
# File 'lib/orefs/fetcher.rb', line 19

def set_options(options)
  super(options)
  @collector = options[:collector]
end