master
 1class AddReviewCommand
 2  def initialize(restaurant_name_textbox)
 3    @textbox = restaurant_name_textbox
 4  end
 5  def run(button)
 6    puts "RUNNING COMMAND"
 7    #button.disable
 8    #@textbox.disable
 9    BW::Location.get do |result|
10      BW::Location.stop
11      location = Restaurant.new(@textbox.text, result[:to].latitude, result[:to].longitude)
12      location.save
13    end
14  end
15end