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 NYTimesAPI

Usage

Real State API

First initialize the object, using your api key:

ny = NYTimesAPI::RealState.new "myawesomapikey"
Count
result = ny.counts "Manhattan", {date: "2007-07", bedrooms: 2, type: 3}
Percentiles
result = ny.percentiles "Manhattan", {date: "2007-07", bedrooms: 2, type: 3}

Author

© 2014 Rodrigo Alves