Class: RestaurantWeekBoston::Marker
- Inherits:
-
Object
- Object
- RestaurantWeekBoston::Marker
- Defined in:
- lib/restaurant_week_boston/marker.rb
Overview
Uses a given Scraper and marks restaurants as good for lunch, dinner, any, etc.
Constant Summary collapse
- NONE_REQUESTED =
'[No restaurants requested]'
Instance Method Summary collapse
-
#all ⇒ Object
Print all of the requested restaurants.
-
#initialize(scraper, opts) ⇒ Marker
constructor
opts
is a hash with keys for:lunch
,:dinner
, and:any
.
Constructor Details
#initialize(scraper, opts) ⇒ Marker
opts
is a hash with keys for :lunch
, :dinner
, and :any
. The values of each of these keys should be an array suitable for passing to Scraper#special_find().
12 13 14 15 |
# File 'lib/restaurant_week_boston/marker.rb', line 12 def initialize(scraper, opts) @scraper = scraper @opts = opts end |
Instance Method Details
#all ⇒ Object
Print all of the requested restaurants.
18 19 20 21 22 23 24 |
# File 'lib/restaurant_week_boston/marker.rb', line 18 def all lunch puts dinner puts any end |