Sha256: b3b2df91d8d2f91b92fe470fe5c84880858bbb102429f30efce5b74124835c2f

Contents?: true

Size: 801 Bytes

Versions: 4

Compression:

Stored size: 801 Bytes

Contents

require 'active_support'
require 'active_support/core_ext'
require 'acfs/version'
require 'acfs/errors'

module Acfs
  extend ActiveSupport::Autoload

  autoload :Collection
  autoload :Model
  autoload :Request
  autoload :Response
  autoload :Service

  module Middleware
    extend ActiveSupport::Autoload

    autoload :Base
    autoload :Print
    autoload :Logger
    autoload :JsonDecoder
    autoload :MessagePackDecoder, 'acfs/middleware/msgpack_decoder'
    autoload :JsonEncoder
    autoload :MessagePackEncoder, 'acfs/middleware/msgpack_encoder'
  end

  module Adapter
    extend ActiveSupport::Autoload

    autoload :Typhoeus
  end

  class << self

    # Run all queued
    def run
      adapter.run
    end

    def adapter
      @adapter ||= Adapter::Typhoeus.new
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
acfs-0.14.0 lib/acfs.rb
acfs-0.13.0 lib/acfs.rb
acfs-0.12.0 lib/acfs.rb
acfs-0.11.0 lib/acfs.rb