# Purée [![Gem Version](https://badge.fury.io/rb/puree.svg)](https://badge.fury.io/rb/puree) [![GitPitch](https://gitpitch.com/assets/badge.svg)](https://gitpitch.com/lulibrary/puree) 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'] ``` ...or using a method... ```ruby d.doi ``` ### Collection of 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 or from an array of instances. ## Documentation [API in YARD](http://www.rubydoc.info/gems/puree) [Detailed usage in GitBook](https://aalbinclark.gitbooks.io/puree)