Sha256: 7a81d4946eb7aae86bb078c31d82cf5f5b454c783a2d9c5cde0738e2c616ec48

Contents?: true

Size: 816 Bytes

Versions: 27

Compression:

Stored size: 816 Bytes

Contents

require 'logger'

module Shutl::Resource
  class << self
    attr_writer :raise_exceptions_on_validation,
                :raise_exceptions_on_no_quotes_generated

    def raise_exceptions_on_validation
      if @raise_exceptions_on_validation.nil?
        @raise_exceptions_on_validation = false
      end

      @raise_exceptions_on_validation
    end

    def raise_exceptions_on_no_quotes_generated
      if @raise_exceptions_on_no_quotes_generated.nil?
        @raise_exceptions_on_no_quotes_generated = true
      end

      @raise_exceptions_on_no_quotes_generated
    end
  end

  def configure(*args, &block)
    Configuration.configure(*args, &block)
  end

  module Configuration
    class << self
      attr_accessor :base_uri, :logger

      def configure
        yield self
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
shutl_resource-1.7.2 lib/shutl/resource/configuration.rb
shutl_resource-1.7.1 lib/shutl/resource/configuration.rb
shutl_resource-1.7.0 lib/shutl/resource/configuration.rb
shutl_resource-1.6.0 lib/shutl/resource/configuration.rb
shutl_resource-1.5.6 lib/shutl/resource/configuration.rb
shutl_resource-1.5.5 lib/shutl/resource/configuration.rb
shutl_resource-1.5.4 lib/shutl/resource/configuration.rb
shutl_resource-1.5.3 lib/shutl/resource/configuration.rb
shutl_resource-1.5.2 lib/shutl/resource/configuration.rb
shutl_resource-1.5.1 lib/shutl/resource/configuration.rb
shutl_resource-1.5.0 lib/shutl/resource/configuration.rb
shutl_resource-1.4.2 lib/shutl/resource/configuration.rb
shutl_resource-1.4.1 lib/shutl/resource/configuration.rb
shutl_resource-1.4.0 lib/shutl/resource/configuration.rb
shutl_resource-1.3.6 lib/shutl/resource/configuration.rb
shutl_resource-1.3.5 lib/shutl/resource/configuration.rb
shutl_resource-1.3.4 lib/shutl/resource/configuration.rb
shutl_resource-1.3.3 lib/shutl/resource/configuration.rb
shutl_resource-1.3.2 lib/shutl/resource/configuration.rb
shutl_resource-1.3.1 lib/shutl/resource/configuration.rb