Sha256: 1964cbf55d9cdd140bb25c31fe2048896babe1233cac7a83ede3764e264aafb9

Contents?: true

Size: 1.3 KB

Versions: 1

Compression:

Stored size: 1.3 KB

Contents

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

require 'multi_json'
require 'faraday'
require 'faraday_middleware'
require 'faraday/api_key'
require 'faraday/errors'
require 'active_support/inflector'
require 'active_support/core_ext'
require 'active_model'
require 'hashie'
require 'rack'

require 'reviewed/embeddable'
require 'reviewed/request'
require 'reviewed/client'
require 'reviewed/collection'
require 'reviewed/base'
require 'reviewed/attachable'

require 'reviewed/manufacturer_spec'
require 'reviewed/award'
require 'reviewed/brand'
require 'reviewed/product'
require 'reviewed/product_shelf'
require 'reviewed/deal'
require 'reviewed/analytic'
require 'reviewed/hero'
require 'reviewed/article'
require 'reviewed/author'
require 'reviewed/page'
require 'reviewed/website'
require 'reviewed/notification'
require 'reviewed/event'
require 'reviewed/gallery'

module Reviewed
  class BaseError < StandardError
    attr_accessor :url

    def initialize(opts={})
      @url = opts[:url]
      super(opts[:msg])
    end
  end
  class ConfigurationError < Reviewed::BaseError; end
  class ResourceNotFound < Reviewed::BaseError; end
  class ApiError < Reviewed::BaseError
    attr_reader :http_status
    def initialize(opts={})
      @http_status = opts[:http_status]
      super(opts)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reviewed-1.2.4 lib/reviewed.rb