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
- #close ⇒ Object
-
#initialize(options = {}) ⇒ Fetcher
constructor
A new instance of Fetcher.
- #set_options(options) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Fetcher
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
#close ⇒ Object
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 () super() @collector = [:collector] end |