Class: RestaurantWeekBoston::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/restaurant_week_boston/runner.rb

Overview

Used in the executable script, restaurant_week_boston.

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Runner

Returns a new instance of Runner.



8
9
10
11
12
13
14
# File 'lib/restaurant_week_boston/runner.rb', line 8

def initialize(argv)
  @argv = argv
  @options = {
    :meal => :all,
    :neighborhood => :all,
  }
end

Instance Method Details

#runObject



16
17
18
19
20
21
# File 'lib/restaurant_week_boston/runner.rb', line 16

def run
  parse_options
  scraper = Scraper.new
  marker = Marker.new(scraper, marker_options)
  puts marker.all
end