Sha256: b1136520292676ea5b777a26d73869f5fedb5ca7144134caf9490072d3927548

Contents?: true

Size: 259 Bytes

Versions: 2

Compression:

Stored size: 259 Bytes

Contents

class ForGnuplot
  include EMDextras::Chains::SynchronousStage
  def invoke(data_item)
    country_code = data_item["country"]["id"]
    date         = data_item["date"]
    value        = data_item["value"]
    "#{country_code}\t#{date}\t#{value}"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
em-dextras-0.4.0 doc/samples/worldbank/for_gnuplot.rb
em-dextras-0.3.0 doc/samples/worldbank/for_gnuplot.rb