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']
...or using a method...
d.doi
Collection of 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 or from an array of instances.