Sha256: 3738771fc4921a5210d06442c65c7aca4c15e5e73c7c68e18676fe73c15caf31

Contents?: true

Size: 464 Bytes

Versions: 3

Compression:

Stored size: 464 Bytes

Contents

module KontoAPI

  module Config

    @@disable_for = ['development', 'test']

    class << self

      def api_key=(new_key)
        KontoAPI::api_key = new_key
      end

      def timeout=(new_timeout)
        KontoAPI::timeout = new_timeout
      end

      def disable_for
        @@disable_for
      end

      def disable_for=(disable_for)
        @@disable_for = disable_for
      end

    end

  end

  def self.setup
    yield KontoAPI::Config
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kontoapi-rails-0.3.1 lib/kontoapi-rails/config.rb
kontoapi-rails-0.3.0 lib/kontoapi-rails/config.rb
kontoapi-rails-0.2.6 lib/kontoapi-rails/config.rb