Class: Yelpify::Search

Inherits:
Object
  • Object
show all
Defined in:
lib/yelpify/search.rb

Instance Method Summary collapse

Instance Method Details

#build_url(search_data) ⇒ Object



3
4
5
6
7
# File 'lib/yelpify/search.rb', line 3

def build_url(search_data)
  base = "http://api.yelp.com/v2/search?"
  custom = URI.encode_www_form(search_data)
  path = base + custom
end