Class: ODisk::Fetcher
- Inherits:
-
Opee::Actor
- Object
- Opee::Actor
- ODisk::Fetcher
- 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)
- - (Object) close
-
- (Fetcher) initialize(options = {})
constructor
A new instance of Fetcher.
- - (Object) set_options(options)
Constructor Details
- (Fetcher) initialize(options = {})
Returns a new instance of Fetcher
17 18 19 20 |
# File 'lib/odisk/fetcher.rb', line 17 def initialize(={}) @ftp = nil super() 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 () super() @collector = [:collector] end |