tardate/rgovdata — Issue #4: catalog entities should implement Enumerable to make it *even easier* to use
Author: tardate
Created: 2011-11-05 14:50:39+00:00
State: open

i.e. at the moment, you must directly address the records collection:

RGovData::Catalog.get('//sg/nlb/LibrarySet').records.each { .. }

but this is not as easy and natural as it could be. Ideally, I should be able to:

RGovData::Catalog.get('//sg/nlb/LibrarySet').each { .. }
RGovData::Catalog.get('//sg/nlb/LibrarySet').first
RGovData::Catalog.get('//sg/nlb/LibrarySet')[3]

Also, "collection" is perhaps a better generic name to get to the "records" directly