Sha256: 02ec7e36d7dc911ac25263a86dd3f1361f100b30b7391379166f2716cdbabd66

Contents?: true

Size: 380 Bytes

Versions: 3

Compression:

Stored size: 380 Bytes

Contents

require 'rakuten_web_service'

application_id = ARGV.shift
keyword = ARGV[0..-1].join(' ')

RakutenWebService.configure do |c|
  c.application_id = application_id
end

category = RakutenWebService::Recipe.small_categories.find { |c| c.name.match(keyword) }

recipes = category.ranking

recipes.first(10).each do |recipe|
  puts "#{recipe.title} is made by #{recipe.nickname}"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rakuten_web_service-1.13.2 examples/recipe_search.rb
rakuten_web_service-1.13.1 examples/recipe_search.rb
rakuten_web_service-1.13.0 examples/recipe_search.rb