Class: ThingsFetcher::Fetcher

Inherits:
Object
  • Object
show all
Defined in:
lib/things_fetcher/fetcher.rb

Instance Method Summary collapse

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

#runObject



10
11
12
13
# File 'lib/things_fetcher/fetcher.rb', line 10

def run
  fetcher = ::Fetcher.create(fetcher_options)
  fetcher.fetch
end