Class: CheapShark::DealsFetcher

Inherits:
Fetcher
  • Object
show all
Defined in:
lib/cheapshark/fetchers/deals_fetcher.rb

Constant Summary collapse

FETCHER_ENDPOINT =
'/deals'

Instance Method Summary collapse

Methods inherited from Fetcher

#initialize

Constructor Details

This class inherits a constructor from CheapShark::Fetcher

Instance Method Details

#resultsObject



9
10
11
# File 'lib/cheapshark/fetchers/deals_fetcher.rb', line 9

def results
  @results.map { |result| CheapShark::Deal.new :search, result }
end