Sha256: b9f9a7b02c98b47ffe76d02c1d08d6e70ada1a5896a3d7a74d26e34964833fcb

Contents?: true

Size: 453 Bytes

Versions: 8

Compression:

Stored size: 453 Bytes

Contents

require "ostruct"

Elections2016 = [
  { name: "Donald Trump", votes: 62_979_879, color: "#ff8c00" },
  { name: "Hillary Clinton", votes: 65_844_954, color: "#98abc5" },
  { name: "Gary Johnson", votes: 4_488_919, color: "#8a89a6" },
  { name: "Jill Stein", votes: 1_457_044, color: "#7b6888" },
  { name: "Evan McMullin", votes: 725_902, color: "#6b486b" },
  { name: "Darrell Castle", votes: 202_979, color: "#a05d56" },
].map{|o| OpenStruct.new(o) }

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
hyper-d3-1.0.0.lap28 spec/test_app/app/assets/javascripts/data/elections_2016.rb
hyper-d3-1.0.0.lap27 spec/test_app/app/assets/javascripts/data/elections_2016.rb
hyper-d3-1.0.0.lap26 spec/test_app/app/assets/javascripts/data/elections_2016.rb
hyper-d3-1.0.0.lap25 spec/test_app/app/assets/javascripts/data/elections_2016.rb
hyper-d3-1.0.0.lap24 spec/test_app/app/assets/javascripts/data/elections_2016.rb
hyper-d3-1.0.0.lap23 spec/test_app/app/assets/javascripts/data/elections_2016.rb
opal-d3-0.0.20170822 demo/app/data/elections_2016.rb
opal-d3-0.0.20170205 demo/app/data/elections_2016.rb