NYTimesAPI
Ruby wrapper for The New York Times API
Installation
Add this line to your application's Gemfile:
gem 'NYTimesAPI'Or install it yourself as:
$ gem install NYTimesAPIUsage
Real State API
First initialize the object, using your api key:
ny = NYTimesAPI::RealState.new "myawesomapikey"Counts
result = ny.counts "Manhattan", {date: "2007-07", bedrooms: 2, type: 3}Percentiles
result = ny.percentiles "Manhattan", {date: "2007-07", bedrooms: 2, type: 3}Sales Counts
result = ny.sales_counts "Manhattan", {date: "2007-07", bedrooms: 2, type: 3}Sales Percentiles
result = ny.sales_percentiles "Manhattan", {date: "2007-07", bedrooms: 2, type: 3}Author
- Rodrigo Alves rodrigovieira1994@gmail.com
Copyright
© 2014 Rodrigo Alves