Sha256: b7705bc2d78f3b9c13c3b67751b74eaf9bfd31c7b1eb072f138f03aeb53cc489
Contents?: true
Size: 482 Bytes
Versions: 2
Compression:
Stored size: 482 Bytes
Contents
module Wikidata class Config class << self attr_accessor :options, :adapter, :settings, :mapping def configure yield self end end @options = {} @adapter = :excon @settings = Hashie::Mash.new( YAML.load_file( File.expand_path('../../config/settings.yml', __dir__) ) ) @mapping = Hashie::Mash.new( YAML.load_file( File.expand_path('../../config/mapping.yml', __dir__) ) ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wikidata-client-0.1.0 | lib/wikidata/config.rb |
wikidata-client-0.1.0.pre.rc1 | lib/wikidata/config.rb |