Sha256: 965b4170ead5a83ba55293e1d545c5145323d870304791b23513cff793e3f828

Contents?: true

Size: 849 Bytes

Versions: 2

Compression:

Stored size: 849 Bytes

Contents

$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))

require 'faraday'
require 'faraday_middleware'
require 'active_support/inflector'
require 'active_support/core_ext'
require 'active_model'
require 'hashie'

require 'reviewed/configurable'
require 'reviewed/embeddable'
require 'reviewed/utils'
require 'reviewed/client'
require 'reviewed/collection'
require 'reviewed/base'

require 'reviewed/product'
require 'reviewed/article'
require 'reviewed/author'
require 'reviewed/brand'
require 'reviewed/page'
require 'reviewed/website'


module Reviewed
  class ConfigurationError < StandardError; end

  class << self

    def client
      @client ||= Reviewed::Client.new
    end

    def method_missing(method, *args, &block)
      return super unless client.respond_to?(method)
      client.send(method, *args, &block)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reviewed-0.0.8 lib/reviewed.rb
reviewed-0.0.7 lib/reviewed.rb