Sha256: 1c987f93aeb7b9474b63cac5e874592fd714fa7dd573ad1ede78c1ffb83d3903

Contents?: true

Size: 350 Bytes

Versions: 3

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

module ViaBTC
  class << self
    attr_accessor :configuration
  end

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

  class Configuration
    attr_accessor :http_base_url, :http_response, :http_adapter

    def initialize
      @http_base_url = nil
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
viabtc-1.5.0 lib/viabtc/config.rb
viabtc-1.4.0 lib/viabtc/config.rb
viabtc-1.3.0 lib/viabtc/config.rb