Sha256: 26c39ac3f9f7fe54cae707ee87b8fecafedeec8032fa7e933fd7c768fd866593
Contents?: true
Size: 830 Bytes
Versions: 3
Compression:
Stored size: 830 Bytes
Contents
# frozen_string_literal: true require 'active_support/all' require 'virtus' require 'ethereum.rb' require 'hashtastic' require 'murky' require 'pry' require 'voucher/version' require 'voucher/config' require 'voucher/errors' require 'voucher/model/election' require 'voucher/model/segment' require 'voucher/election_contract' require 'voucher/segments_reader' require 'voucher/segments_builder' require 'voucher/segments_parser' require 'voucher/validator' module Voucher class << self attr_writer :config end def self.config @config ||= Config.new end def self.reset @config = Config.new end def self.configure(options = {}) return yield(config) if block_given? options = options.with_indifferent_access config.ethereum_url = options['host'] if options['host'] config end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
voucher-0.2.1 | lib/voucher.rb |
voucher-0.1.1 | lib/voucher.rb |
voucher-0.1.0 | lib/voucher.rb |