Sha256: ba3055293c31a6d6c864e46b9d4fd6e8700ac662e91dddd43d2307e068781393

Contents?: true

Size: 1010 Bytes

Versions: 2

Compression:

Stored size: 1010 Bytes

Contents

require "faraday"
require "rack"
require "json"
require "yummly/api"
require "yummly/attribution"
require "yummly/configuration"
require "yummly/connection"
require "yummly/faraday_adapter"
require "yummly/flavor"
require "yummly/image"
require "yummly/nutrition_estimate"
require "yummly/recipe"
require "yummly/search_result"
require "yummly/source"
require "yummly/unit"
require "yummly/version"
require "yummly/url_builder"

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 NotFoundError < Error; end
  class PermissionError < Error; end
  class NotImplementedError < Error; end
  class InternalServerError < Error; end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yummly-0.0.12 lib/yummly.rb
yummly-0.0.11 lib/yummly.rb