Sha256: b79311b7001b4149cb06aab52a35df02c57fc972c2163e7fb7db84e51fbff2ba

Contents?: true

Size: 736 Bytes

Versions: 1

Compression:

Stored size: 736 Bytes

Contents

# Kosher is a somewhat overengineered attempt to abstract bookdealing into a
# set of models.

require 'money'
require 'structure'
require 'structure/json'

# Require this module before all models.
require 'kosher/threshold'

# Require the models.
require 'kosher/availability'
require 'kosher/book'
require 'kosher/condition'
require 'kosher/description'
require 'kosher/item'
require 'kosher/location'
require 'kosher/offer'
require 'kosher/seller'
require 'kosher/shipping'

module Kosher
  class << self
    attr_writer :seller_blacklist

    def seller_blacklist
      @seller_blacklist ||= []
    end
  end

  # Set threshold defaults.
  Availability.threshold = 48
  Condition.threshold    = 4
  Seller.threshold       = 4.8
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kosher-0.3.0 lib/kosher.rb