Class: ODisk::Fetcher

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

Overview

Fetches a remote Digest JSON document and creates a Digest Object from it. That Digest is then passed on to a Opee::Collector.

Instance Method Summary (collapse)

Constructor Details

- (Fetcher) initialize(options = {})

Returns a new instance of Fetcher



17
18
19
20
# File 'lib/odisk/fetcher.rb', line 17

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

Instance Method Details

- (Object) close



27
28
29
30
31
# File 'lib/odisk/fetcher.rb', line 27

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

- (Object) set_options(options)



22
23
24
25
# File 'lib/odisk/fetcher.rb', line 22

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