Purée Gem Version

Purée consumes the Pure Research Information System API and puts the metadata into simple data structures.

Installation

Add this line to your application's Gemfile:

gem 'puree'

And then execute:

$ bundle

Or install it yourself as:

$ gem install puree

Usage

The following examples are for the Dataset resource type.

Single resource

Tell Purée what you are looking for...

d = Puree::Dataset.new
 = d.find uuid: 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'

...and get the data from a hash...

['doi']

Collection of 50 resources

Tell Purée what you are looking for...

c = Puree::Collection.new resource: :dataset
 = c.find limit: 50

...and get the data from an array of hashes.

Documentation

API in YARD

Detailed usage