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

#initialize(options = {}) ⇒ Fetcher

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

#closeObject



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

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

#set_options(options) ⇒ Object



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

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