Sha256: 3c539ac3a89d6773a130ea96e429df4788c4bb144944913d842d4890cf1413d4

Contents?: true

Size: 723 Bytes

Versions: 3

Compression:

Stored size: 723 Bytes

Contents

require "yummly/api"
require "yummly/configuration"
require "yummly/connection"
require "yummly/flavor"
require "yummly/image"
require "yummly/nutrition_estimate"
require "yummly/recipe"
require "yummly/source"
require "yummly/unit"
require "yummly/version"

module Yummly

  API_VERSION = 'v1'

  class << self

    attr_accessor :configuration

    def configure
      configuration = Yummly::Configuration.new
      yield(configuration)
      self.configuration = configuration
    end

    def search(terms, params = {})
      Yummly::Api.search(terms, params)
    end

    def find(recipe_id)
      Yummly::Api.find(recipe_id)
    end
  end

  class Error < StandardError; end
  class PermissionError < Error; end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yummly-0.0.6 lib/yummly.rb
yummly-0.0.5 lib/yummly.rb
yummly-0.0.4 lib/yummly.rb