Sha256: f1d8fb95e918e68a5f64bcf0c88376d1d9af842394cd353f8e9917e90305c65e
Contents?: true
Size: 741 Bytes
Versions: 3
Compression:
Stored size: 741 Bytes
Contents
= Punchfork A simple Ruby library for searching recipes with punchfork.com = Install add it to your Gemfile: gem 'punchfork' configure your API key in config/initializers/punchfork.rb Punchfork.setup do |config| config.api_key = 'your-api-key' end = Usage Search for recipes using ingredients: search = Punchfork.search(:garlic, :tomatoes) search['count'] # => 10 search['recipes'].length # => 10 Any options you pass to the search method will automatically be appended to the querystring sent to punchfork.com. For example: search = Punchfork.search(:tomato, count:50) search['count'] # => 50 Check out the full set of options at http://punchfork.com/api#apidocs = License This project rocks and uses MIT-LICENSE.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
punchfork-0.0.3 | README.rdoc |
punchfork-0.0.2 | README.rdoc |
punchfork-0.0.1 | README.rdoc |