Ruby wrapper for The New York Times API
Add this line to your application's Gemfile:
gem 'NYTimesAPI'
Or install it yourself as:
$ gem install NYTimesAPI
First initialize the object, using your api key:
ny = NYTimesAPI::RealState.new "myawesomapikey"
result = ny.counts "Manhattan", {date: "2007-07", bedrooms: 2, type: 3}
result = ny.percentiles "Manhattan", {date: "2007-07", bedrooms: 2, type: 3}
result = ny.sales_counts "Manhattan", {date: "2007-07", bedrooms: 2, type: 3}
result = ny.sales_percentiles "Manhattan", {date: "2007-07", bedrooms: 2, type: 3}
- Rodrigo Alves [email protected]
© 2014 Rodrigo Alves