dwillis/fech-ftp — pull request #1 by wismer (2014-07-24 21:00:54+00:00)
Title: Ftp fech

Please let me know what you think!

It adheres to the same commands that were given before `Fech::Candidate.detail(2012)` though the difference here is that optional arguments can be added like so: `Fech::Candidate.detail(2012, mode: :to_csv)` (The former gives an array of hash key/value pairs, the latter creates a CSV file and then returns the CSV object the file pertained to).

`Fech::Candidate.detail(2012, mode: :to_db, db: )` also signals to the parser to copy the formatted row of data to a database, as specified through the [Sequel Gem](https://github.com/jeremyevans/sequel/). It "sort of" works. As it stands, it assumes the DB object you supply already has all the necessary column fields for the table it's pointing at and the data types match as well. I'll update it if you think this PR is useful.