Class: ThingsFetcher::Fetcher
- Inherits:
-
Object
- Object
- ThingsFetcher::Fetcher
- Defined in:
- lib/things_fetcher/fetcher.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ Fetcher
constructor
A new instance of Fetcher.
- #run ⇒ Object
Constructor Details
#initialize(config) ⇒ Fetcher
Returns a new instance of Fetcher.
6 7 8 |
# File 'lib/things_fetcher/fetcher.rb', line 6 def initialize(config) @config = config end |
Instance Method Details
#run ⇒ Object
10 11 12 13 |
# File 'lib/things_fetcher/fetcher.rb', line 10 def run fetcher = ::Fetcher.create() fetcher.fetch end |