Sha256: f184ca521b24afed100fd468cacde54a709fc0d0dd3712106e876f6702b8735d

Contents?: true

Size: 1.38 KB

Versions: 2

Compression:

Stored size: 1.38 KB

Contents

require "active_support/configurable"
require "active_support/core_ext/array/wrap"
require "outbox"

require "fulfillment/errors"
require "fulfillment/version"

module Fulfillment
  include ActiveSupport::Configurable

  config_accessor :proxy

  autoload :Api,      "fulfillment/api"
  autoload :Client,   "fulfillment/client"
  autoload :Model,    "fulfillment/model"
  autoload :Request,  "fulfillment/request"
  autoload :Response, "fulfillment/response"
  autoload :Resource, "fulfillment/resource"

  module Models
    autoload :Collection,  "fulfillment/models/collection"
    autoload :Deliverable, "fulfillment/models/deliverable"
    autoload :Order,       "fulfillment/models/order"
    autoload :Product,     "fulfillment/models/product"
    autoload :Voucher,     "fulfillment/models/voucher"
  end

  module Requests
  end

  module Resources
    autoload :Inventories,   "fulfillment/resources/inventories"
    autoload :Orders,        "fulfillment/resources/orders"
    autoload :Organizations, "fulfillment/resources/organizations"
    autoload :Manifests,     "fulfillment/resources/manifests"
    autoload :Products,      "fulfillment/resources/products"
    autoload :Types,         "fulfillment/resources/types"
    autoload :Venues,        "fulfillment/resources/venues"
    autoload :Vouchers,      "fulfillment/resources/vouchers"
  end

  def self.client
    @client ||= Client.new
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fulfillment-api-1.1.9 lib/fulfillment.rb
fulfillment-api-1.1.7 lib/fulfillment.rb