Sha256: 03cea6061db1866456c45f61016852da75eff242067d71b36d7947a74a8ef13e
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 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 'faraday/cache' 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/deal' require 'reviewed/hero' require 'reviewed/article' require 'reviewed/author' require 'reviewed/page' require 'reviewed/website' require 'reviewed/notification' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reviewed-1.0.3 | lib/reviewed.rb |
reviewed-1.0.2 | lib/reviewed.rb |