Sha256: 20128261de60325cf43fec07ca41bcf79c01d758dbf554662c5ea0770197e3b4

Contents?: true

Size: 479 Bytes

Versions: 2

Compression:

Stored size: 479 Bytes

Contents

module Wikidata
  class Config
    class << self
      attr_accessor :client_options, :settings, :mapping

      def configure &block
        yield self
      end
    end

    @client_options = {}
    @settings = Hashie::Mash.new(
      YAML.load_file(
        File.expand_path('../../../config/settings.yml', __FILE__)
      )
    )
    @mapping = Hashie::Mash.new(
      YAML.load_file(
        File.expand_path('../../../config/mapping.yml', __FILE__)
      )
    )
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wikidata-client-0.0.2 lib/wikidata/config.rb
wikidata-client-0.0.1 lib/wikidata/config.rb