Sha256: 0a1f8203237e006fe1cc5f562c2cf8ced9fdc4354ac4b6083216bcee944098fb
Contents?: true
Size: 1.51 KB
Versions: 5
Compression:
Stored size: 1.51 KB
Contents
# Pragma::Decorator [![Build Status](https://img.shields.io/travis/pragmarb/pragma-decorator.svg?maxAge=3600&style=flat-square)](https://travis-ci.org/pragmarb/pragma-decorator) [![Dependency Status](https://img.shields.io/gemnasium/pragmarb/pragma-decorator.svg?maxAge=3600&style=flat-square)](https://gemnasium.com/github.com/pragmarb/pragma-decorator) [![Code Climate](https://img.shields.io/codeclimate/github/pragmarb/pragma-decorator.svg?maxAge=3600&style=flat-square)](https://codeclimate.com/github/pragmarb/pragma-decorator) [![Coveralls](https://img.shields.io/coveralls/pragmarb/pragma-decorator.svg?maxAge=3600&style=flat-square)](https://coveralls.io/github/pragmarb/pragma-decorator) Decorators are a way to easily convert your API resources to JSON with minimum hassle. They are built on top of [ROAR](https://github.com/apotonick/roar) but provide some useful helpers for rendering collections, including pagination metadata and expanding associations. ## Installation Add this line to your application's Gemfile: ```ruby gem 'pragma-decorator' ``` And then execute: ```console $ bundle ``` Or install it yourself as: ```console $ gem install pragma-decorator ``` ## Usage All documentation is in the [doc](https://github.com/pragmarb/pragma-decorator/tree/master/doc) folder. ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/pragmarb/pragma-decorator. ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
pragma-decorator-1.3.0 | README.md |
pragma-decorator-1.2.0 | README.md |
pragma-decorator-1.1.0 | README.md |
pragma-decorator-1.0.1 | README.md |
pragma-decorator-1.0.0 | README.md |