# Purée [![Gem Version](https://badge.fury.io/rb/puree.svg)](https://badge.fury.io/rb/puree) 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... ```ruby d = Puree::Dataset.new metadata = d.find uuid: 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx' ``` ...and get the data from a hash... ```ruby metadata['doi'] ``` ### Collection of 50 resources Tell Purée what you are looking for... ```ruby c = Puree::Collection.new resource: :dataset metadata = c.find limit: 50 ``` ...and get the data from an array of hashes. ## Documentation [API in YARD](http://www.rubydoc.info/gems/puree/frames) [Detailed usage](https://github.com/lulibrary/puree/wiki)