Sha256: ab5d9c707e7eb37376e0379fdf4dda35859a585731987be8d5978dcf2e40f820

Contents?: true

Size: 417 Bytes

Versions: 2

Compression:

Stored size: 417 Bytes

Contents

#!/usr/bin/env ruby

require_relative '_base'
require 'reality/data_sources/worldbank'

titles = ARGV.dup

source = Reality::DataSources::Worldbank.new

titles.each do |t|
  puts "#{t}\n" + "="*t.length + "\n"

  observations = source.get(t)
  #pp observations['claims'].select { |k, v| v.count > 1 }.map{|k,v| [k, v.count]}.to_h
  #observations.each { |name, val| puts '%s: %p' % [name, val] }
  pp observations
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reality-0.1.0.alpha2 test/worldbank.rb
reality-0.1.0.alpha test/worldbank.rb