Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Distant future] Built-in field reference #6

Open
beechnut opened this issue Jul 12, 2013 · 0 comments
Open

[Distant future] Built-in field reference #6

beechnut opened this issue Jul 12, 2013 · 0 comments

Comments

@beechnut
Copy link
Contributor

I'm imagining adding a CensusApi::FieldFinder module that lets people search for fields with a certain string in them, for example:

@finder = CensusApi::FieldFinder.new
@finder.find_table 'population'

This would return all the tables whose names include 'population', and their symbols for use in a text-based Client#find:

[
  {name: 'Institutionalized Population', code: 'PC02', symbol: :institutionalized_pop},
  {name: 'Noninstitutionalized Population', code: 'PC07', symbol: :noninstitutionalized_pop},
  ...
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants