tyrauber / census_api

A Ruby Gem for querying the US Census Bureau API
MIT License
30 stars 9 forks source link

Support multiple fields from Array #3

Closed beechnut closed 11 years ago

beechnut commented 11 years ago

It would be nice to allow the user to specify multiple fields as individual strings. Right now, multiple fields can be passed as a string like 'FIELD1,FIELD2'.

Call:

@client.find( ['P0010001', 'P0390001'], 'COUNTY:025', 'STATE:25' )

Return:

[{"P0010001"=>"722023", "P0390001"=>"140412", "name"=>"Suffolk County", "state"=>"25", "county"=>"025"}] 
beechnut commented 11 years ago

Added to current pull request.

tyrauber commented 11 years ago

Agreed and adopted in 1.0.2.