Skip to content

Instantly share code, notes, and snippets.

@bycoffe
Created February 25, 2012 18:22
Show Gist options
  • Save bycoffe/1909939 to your computer and use it in GitHub Desktop.
Save bycoffe/1909939 to your computer and use it in GitHub Desktop.
original = Fech::Filing.new(764200)
original.download
amendment = Fech::Filing.new(764828)
amendment.download
comparison = Fech::Comparison.new(amendment, original)
p comparison.summary
# {:date_signed=>"20120207"}
comparison.schedule('sa').each do |row|
p [row[:transaction_id],
row[:contributor_first_name],
row[:contributor_last_name],
row[:contributor_organization_name],
row[:contribution_amount]
]
end
["SA11AI.4969", "Jesse", "Rogers", nil, "125000.00"]
["SA11AI.4971", "Melinda", "Rogers", nil, "125000.00"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment