Sha256: 04a57570eb881f03ebf37ab9369c6336a0d7656993b599ef3b456d2470b495d1

Contents?: true

Size: 1.28 KB

Versions: 3

Compression:

Stored size: 1.28 KB

Contents

require 'active_model'
require 'active_support'
require 'json'
require 'typhoeus'

require 'active_support'
require 'active_support/core_ext/class/attribute_accessors'
require 'active_support/core_ext/class/attribute'
require 'active_support/core_ext/hash/indifferent_access'
require 'active_support/core_ext/kernel/reporting'
require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/module/aliasing'
require 'active_support/core_ext/object/blank'
require 'active_support/core_ext/object/to_query'
require 'active_support/core_ext/object/duplicable'
require 'set'
require 'uri'

require 'active_support/core_ext/uri'

require 'lazy_resource/version'
require 'lazy_resource/errors'

require 'lazy_resource/ext/typhoeus'

module LazyResource
  extend ActiveSupport::Autoload
  
  autoload :ConfigurationDelegate
  autoload :Attributes
  autoload :Mapping
  autoload :Relation
  autoload :Request
  autoload :Resource
  autoload :ResourceQueue
  autoload :Types
  autoload :UrlGeneration

  def self.configure(&block)
    yield LazyResource::ConfigurationDelegate.new
  end

  def self.logger=(logger)
    @logger = logger
  end

  def self.logger
    @logger
  end

  def self.debug=(debug)
    @debug = debug
  end

  def self.debug
    @debug = @debug.nil? ? false : @debug
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lazy_resource-0.4.0 lib/lazy_resource.rb
lazy_resource-0.3.3 lib/lazy_resource.rb
lazy_resource-0.3.2 lib/lazy_resource.rb