Sha256: 73b4fdace09cff23294d91b0a246c6a66e0de61d0c1b3c4832ff4360902e84bd

Contents?: true

Size: 771 Bytes

Versions: 1

Compression:

Stored size: 771 Bytes

Contents

require "faraday"
require "rack"
require "json"
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

1 entries across 1 versions & 1 rubygems

Version Path
yummly-0.0.9 lib/yummly.rb