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
9
# File 'lib/things_fetcher/fetcher.rb', line 6

def initialize(config)
  super
  @config = config
end

Instance Method Details

#runObject



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

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