Sha256: 77a5490754fda2f13bc79ccddafa73d968601093758a5b13f5c5717a826b0288

Contents?: true

Size: 371 Bytes

Versions: 4

Compression:

Stored size: 371 Bytes

Contents

# frozen_string_literal: true

module CryptomateApi
  class << self
    attr_accessor :configuration
  end

  def self.configure
    self.configuration ||= Configuration.new
    yield(configuration)
  end

  class Configuration
    attr_accessor :api_key, :base_uri

    def initialize
      @api_key = nil
      @base_uri = 'https://cryptomate.me/api'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cryptomate_api-0.2.0 lib/cryptomate_api/configuration.rb
cryptomate_api-0.1.4 lib/cryptomate_api/configuration.rb
cryptomate_api-0.1.3 lib/cryptomate_api/configuration.rb
cryptomate_api-0.1.2 lib/cryptomate_api/configuration.rb