Sha256: 37d306cca780a2e5afea177a7055a9455c028f66accd63544d940afb4ef9d5cc

Contents?: true

Size: 912 Bytes

Versions: 1

Compression:

Stored size: 912 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'
   config.protocol = 'https' # defaults to http
 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

= Contact

If you have any issues or questions, please open a ticket through github: https://github.com/gabeodess/Punchfork/issues

= License

This project rocks and uses MIT-LICENSE.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
punchfork-0.0.4 README.rdoc