Sha256: 00503db631e10cc2d1a11b9a692ad411a879286a17048f575bff96d97034af7f

Contents?: true

Size: 281 Bytes

Versions: 7

Compression:

Stored size: 281 Bytes

Contents

# frozen_string_literal: true

require 'singleton'

# Root Crunchbase
module Crunchbase
  # Config
  class Config
    include Singleton
    attr_accessor :user_key, :bulk_url, :debug
  end

  def self.config
    yield Config.instance if block_given?

    Config.instance
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
crunchbase4-0.2.6 lib/crunchbase/config.rb
crunchbase4-0.2.5 lib/crunchbase/config.rb
crunchbase4-0.2.4 lib/crunchbase/config.rb
crunchbase4-0.2.2 lib/crunchbase/config.rb
crunchbase4-0.2.1 lib/crunchbase/config.rb
crunchbase4-0.2.0 lib/crunchbase/config.rb
crunchbase4-0.1.9 lib/crunchbase/config.rb