class Pebbles::CookpadSearch::CLI

Public Instance Methods

by_food(food = '') click to toggle source
# File lib/pebbles/cookpad_search/cli.rb, line 11
def by_food(food = '')
  url = DEFAULT_URL + "search/" + food
  Searcher.search(url)
end
by_id(id = '') click to toggle source
# File lib/pebbles/cookpad_search/cli.rb, line 17
def by_id(id = '')
  url = DEFAULT_URL + "recipe/" + id
  Searcher.by_id(url)
end