Sha256: b69262b6fa0cee779e8d1913e1e6a003a6ae55aa54de29f9ab68b3cc89ccb261

Contents?: true

Size: 286 Bytes

Versions: 3

Compression:

Stored size: 286 Bytes

Contents

require 'logger'

module Etherscan

  class Config
    attr_accessor :key, :secret, :url, :logger, :raise_exceptions

    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

3 entries across 3 versions & 1 rubygems

Version Path
etherscan_api-0.4.0 lib/etherscan/config.rb
etherscan_api-0.3.0 lib/etherscan/config.rb
etherscan_api-0.2.0 lib/etherscan/config.rb