Sha256: 87b0e06e930b5b9207b8899a160e38e0c513b950eebda5fb82bd8c6ff744f7f7

Contents?: true

Size: 274 Bytes

Versions: 5

Compression:

Stored size: 274 Bytes

Contents

require 'logger'

module Leadsquared

  class Config
    attr_accessor :key, :secret, :endpoint, :logger

    def logger
      @logger ||= Logger.new(STDERR)
    end
  end

  def self.configure
    yield config
  end

  def self.config
    @config ||= Config.new
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
leadsquared-0.5.0 lib/leadsquared/config.rb
leadsquared-0.4.0 lib/leadsquared/config.rb
leadsquared-0.3.1 lib/leadsquared/config.rb
leadsquared-0.3.0 lib/leadsquared/config.rb
leadsquared-0.2.0 lib/leadsquared/config.rb